GITHUB下载程序不能运行,解决Unable to resolve superclass的问题 - GentlemanMod

转载
http://www.cnblogs.com/GentlemanMod/p/3254224.html

04-08 11:18:15.504: D/jdwp(25460): sendBufferedRequest : len=0x3D
04-08 11:18:15.521: D/dalvikvm(25460): open_cached_dex_file : /data/app/com.swipelistview-1.apk /data/dalvik-cache/data@[email protected]@classes.dex
04-08 11:18:15.543: W/dalvikvm(25460): Unable to resolve superclass of Lcom/swipelistview/sample/activities/SwipeListViewExampleActivity; (28)
04-08 11:18:15.543: W/dalvikvm(25460): Link of class 'Lcom/swipelistview/sample/activities/SwipeListViewExampleActivity;' failed
04-08 11:18:15.544: D/AndroidRuntime(25460): Shutting down VM
04-08 11:18:15.544: W/dalvikvm(25460): threadid=1: thread exiting with uncaught exception (group=0x4196e9a8)
04-08 11:18:15.546: E/AndroidRuntime(25460): FATAL EXCEPTION: main
04-08 11:18:15.546: E/AndroidRuntime(25460): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.swipelistview/com.swipelistview.sample.activities.SwipeListViewExampleActivity}: java.lang.ClassNotFoundException: Didn't find class "com.swipelistview.sample.activities.SwipeListViewExampleActivity" on path: DexPathList[dexElements=[zip file "/data/app/com.swipelistview-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.swipelistview-1, /vendor/lib, /system/lib]]
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2385)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread.access$600(ActivityThread.java:157)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.os.Handler.dispatchMessage(Handler.java:99)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.os.Looper.loop(Looper.java:153)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread.main(ActivityThread.java:5326)
04-08 11:18:15.546: E/AndroidRuntime(25460): at java.lang.reflect.Method.invokeNative(Native Method)
04-08 11:18:15.546: E/AndroidRuntime(25460): at java.lang.reflect.Method.invoke(Method.java:511)
04-08 11:18:15.546: E/AndroidRuntime(25460): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:848)
04-08 11:18:15.546: E/AndroidRuntime(25460): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:615)
04-08 11:18:15.546: E/AndroidRuntime(25460): at dalvik.system.NativeStart.main(Native Method)
04-08 11:18:15.546: E/AndroidRuntime(25460): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.swipelistview.sample.activities.SwipeListViewExampleActivity" on path: DexPathList[dexElements=[zip file "/data/app/com.swipelistview-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.swipelistview-1, /vendor/lib, /system/lib]]
04-08 11:18:15.546: E/AndroidRuntime(25460): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
04-08 11:18:15.546: E/AndroidRuntime(25460): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
04-08 11:18:15.546: E/AndroidRuntime(25460): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
04-08 11:18:15.546: E/AndroidRuntime(25460): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2250)
04-08 11:18:15.546: E/AndroidRuntime(25460): ... 11 more

 


开启的具体步骤如下:

1. 右键项目,选择属性
2. Java Build Patch -> Order and Export
3. 勾上 Android Private Libraries
4. 重新编译即可

 

你可能感兴趣的:(java,android)