Exception on running sample apps on Android L preview -
i tried run couple of sample apps android l preview sdk directory. getting following exception every time when run on emulator or device flashed latest image.
06-27 11:33:12.627: e/androidruntime(1071): java.lang.runtimeexception: unable instantiate activity componentinfo{com.example.android.elevationdrag/com.example.android.elevationdrag.mainactivity}: java.lang.classnotfoundexception: didn't find class "com.example.android.elevationdrag.mainactivity" on path: dexpathlist[[zip file "/data/app/com.example.android.elevationdrag-1.apk"],nativelibrarydirectories=[/data/app-lib/com.example.android.elevationdrag-1, /vendor/lib, /system/lib]] 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread.performlaunchactivity(activitythread.java:2166) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread.handlelaunchactivity(activitythread.java:2317) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread.access$800(activitythread.java:143) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread$h.handlemessage(activitythread.java:1258) 06-27 11:33:12.627: e/androidruntime(1071): @ android.os.handler.dispatchmessage(handler.java:102) 06-27 11:33:12.627: e/androidruntime(1071): @ android.os.looper.loop(looper.java:135) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread.main(activitythread.java:5070) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.reflect.method.invoke(native method) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.reflect.method.invoke(method.java:372) 06-27 11:33:12.627: e/androidruntime(1071): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:836) 06-27 11:33:12.627: e/androidruntime(1071): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:631) 06-27 11:33:12.627: e/androidruntime(1071): caused by: java.lang.classnotfoundexception: didn't find class "com.example.android.elevationdrag.mainactivity" on path: dexpathlist[[zip file "/data/app/com.example.android.elevationdrag-1.apk"],nativelibrarydirectories=[/data/app-lib/com.example.android.elevationdrag-1, /vendor/lib, /system/lib]] 06-27 11:33:12.627: e/androidruntime(1071): @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.classloader.loadclass(classloader.java:511) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.classloader.loadclass(classloader.java:469) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.instrumentation.newactivity(instrumentation.java:1062) 06-27 11:33:12.627: e/androidruntime(1071): @ android.app.activitythread.performlaunchactivity(activitythread.java:2157) 06-27 11:33:12.627: e/androidruntime(1071): ... 10 more 06-27 11:33:12.627: e/androidruntime(1071): suppressed: java.lang.classnotfoundexception: com.example.android.elevationdrag.mainactivity 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.class.classforname(native method) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.bootclassloader.findclass(classloader.java:781) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.bootclassloader.loadclass(classloader.java:841) 06-27 11:33:12.627: e/androidruntime(1071): @ java.lang.classloader.loadclass(classloader.java:504) 06-27 11:33:12.627: e/androidruntime(1071): ... 13 more 06-27 11:33:12.627: e/androidruntime(1071): caused by: java.lang.noclassdeffounderror: class "lcom/example/android/elevationdrag/mainactivity;" not found
anybody know how fix it?
Comments
Post a Comment