Android error - Caused by: java.lang.NoClassDefFoundError: android.support.v4.util.SparseArrayCompat -


i have these log errors when launching app:

> 05-20 01:48:35.312: e/androidruntime(23032): fatal exception: main 05-20 01:48:35.312: e/androidruntime(23032): java.lang.runtimeexception: unable start activity componentinfo{com.tomsyweb.suna/com.tomsyweb.suna.mainactivity}: android.view.inflateexception: binary xml file line #9: error inflating class com.origamilabs.library.views.staggeredgridview 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread.performlaunchactivity(activitythread.java:1651) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:1667) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread.access$1500(activitythread.java:117) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread$h.handlemessage(activitythread.java:935) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.os.handler.dispatchmessage(handler.java:99) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.os.looper.loop(looper.java:130) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread.main(activitythread.java:3687) 05-20 01:48:35.312: e/androidruntime(23032):    @ java.lang.reflect.method.invokenative(native method) 05-20 01:48:35.312: e/androidruntime(23032):    @ java.lang.reflect.method.invoke(method.java:507) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:867) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:625) 05-20 01:48:35.312: e/androidruntime(23032):    @ dalvik.system.nativestart.main(native method) 05-20 01:48:35.312: e/androidruntime(23032): caused by: android.view.inflateexception: binary xml file line #9: error inflating class com.origamilabs.library.views.staggeredgridview 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.createview(layoutinflater.java:518) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:570) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.rinflate(layoutinflater.java:623) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.inflate(layoutinflater.java:408) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.inflate(layoutinflater.java:320) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.inflate(layoutinflater.java:276) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.actionbarsherlock.internal.actionbarsherlockcompat.setcontentview(actionbarsherlockcompat.java:853) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.actionbarsherlock.app.sherlockactivity.setcontentview(sherlockactivity.java:229) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.tomsyweb.suna.mainactivity.oncreate(mainactivity.java:72) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.app.activitythread.performlaunchactivity(activitythread.java:1615) 05-20 01:48:35.312: e/androidruntime(23032):    ... 11 more 05-20 01:48:35.312: e/androidruntime(23032): caused by: java.lang.reflect.invocationtargetexception 05-20 01:48:35.312: e/androidruntime(23032):    @ java.lang.reflect.constructor.constructnative(native method) 05-20 01:48:35.312: e/androidruntime(23032):    @ java.lang.reflect.constructor.newinstance(constructor.java:415) 05-20 01:48:35.312: e/androidruntime(23032):    @ android.view.layoutinflater.createview(layoutinflater.java:505) 05-20 01:48:35.312: e/androidruntime(23032):    ... 21 more 05-20 01:48:35.312: e/androidruntime(23032): caused by: java.lang.noclassdeffounderror: android.support.v4.util.sparsearraycompat 05-20 01:48:35.312: e/androidruntime(23032):    @ com.origamilabs.library.views.staggeredgridview.<init>(staggeredgridview.java:297) 05-20 01:48:35.312: e/androidruntime(23032):    @ com.origamilabs.library.views.staggeredgridview.<init>(staggeredgridview.java:304) 05-20 01:48:35.312: e/androidruntime(23032):    ... 24 more 

and problem appeared after installing android sdk tools rev. 22, android sdk build-tools , updating google play services.

whereas in error

caused by: java.lang.noclassdeffounderror: android.support.v4.util.sparsearraycompat

and noting "android.support.v4" import, javadoc isn't accessible

note: element neither has attached source nor attached javadoc , hence no javadoc found.

the problem due android support library.

hope information find solution.

right click on project -> build path -> configure build path -> order , export tab.

make sure "android private libraries" checked export.

if you've added libraries libs/ folder, remove them automatically added in "android private libraries" section.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -