2 qi15637293252 qi15637293252 于 2013.12.02 09:51 提问

Android运行报错 求大神指导

12-01 20:49:04.872: D/AndroidRuntime(2097): Shutting down VM
12-01 20:49:04.872: W/dalvikvm(2097): threadid=1: thread exiting with uncaught exception (group=0xb4addb90)
12-01 20:49:04.922: E/AndroidRuntime(2097): FATAL EXCEPTION: main
12-01 20:49:04.922: E/AndroidRuntime(2097): Process: com.doudou, PID: 2097
12-01 20:49:04.922: E/AndroidRuntime(2097): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.doudou/com.doudou.DadoudouActivity}: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.access$700(ActivityThread.java:135)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Looper.loop(Looper.java:137)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.main(ActivityThread.java:4998)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invokeNative(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invoke(Method.java:515)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.NativeStart.main(Native Method)
12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]
12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2093)
12-01 20:49:04.922: E/AndroidRuntime(2097): ... 11 more
12-01 20:49:07.812: I/Process(2097): Sending signal. PID: 2097 SIG: 9

30个回答

songzhiyong1121
songzhiyong1121   2013.12.02 14:32
已采纳

1.删除bin再编译调试
2.项目Properties>Java Build Path>Order and export,调整library顺序,把其他library都提前试试

yuanquan323
yuanquan323 正解~
2 年多之前 回复
crazy1235
crazy1235 ok
大约 3 年之前 回复
Jary163
Jary163 确实 问题解决了
接近 4 年之前 回复
feng33ge
feng33ge   2014.05.22 14:01

Properties>Java Build Path>Order and export 中的android-support-v4.jar选中

bberdong
bberdong   2014.11.26 09:19

我也凑个热闹。
这错误很常见啊,DadoudouActivity这个你需要在manifest里声明。这是很基础的问题啊

u014737138
u014737138   2014.10.18 21:26

标准答案:clean一把,
一把先看Caused by: java.lang.ClassNotFoundException: 还有空指针异常,都是去clean一把,非常的有效果

scienlo
scienlo   2014.11.22 23:22

这 是什么错误呢?不太懂,自己百度一下嘛

guwei4037
guwei4037   Ds   Rxr 2014.11.29 14:08

12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]]

com.doudou.DadoudouActivity 这个Activity没有找到,看看是否在manifest.xml里面注册。

Kelley_cfy
Kelley_cfy   2014.11.18 10:53

Manifest.xml 中声明了吗?仔细看看声明是否正确

91program
91program   Ds   Rxr 2014.11.18 18:05

Intent Manifast 中声明

liu13722785488
liu13722785488   2014.11.19 09:32

如果这个DadoudouActivity没有找到,(1)看看是不是这个程序的AndroidManifest.xml文件里面没有生命这个activity。(2)或者看看这个是不是调用的另外一个应用啊,然后没有安装这个apk,所以找不到。或者安装了这个apk,这个apk的清单文件里面没有声明此activity。

rocksent
rocksent   2014.11.19 16:42

你的库文件没加载成功

共30条数据 1 3 尾页
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!