android报错java.lang.NoClassDefFoundError: com.google.zxing.client.android.R$layout 15
01-0606:38:54.364:E/AndroidRuntime(209):Uncaughthandler:threadmainexitingduetouncaugh...
01-06 06:38:54.364: E/AndroidRuntime(209): Uncaught handler: thread main exiting due to uncaught exception
01-06 06:38:54.389: E/AndroidRuntime(209): java.lang.NoClassDefFoundError: com.google.zxing.client.android.R$layout
01-06 06:38:54.389: E/AndroidRuntime(209): at com.google.zxing.client.android.CaptureActivity.onCreate
(CaptureActivity.java:156)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.os.Handler.dispatchMessage(Handler.java:99)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.os.Looper.loop(Looper.java:123)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-06 06:38:54.389: E/AndroidRuntime(209): at java.lang.reflect.Method.invokeNative(Native Method)
01-06 06:38:54.389: E/AndroidRuntime(209): at java.lang.reflect.Method.invoke(Method.java:521)
01-06 06:38:54.389: E/AndroidRuntime(209): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-06 06:38:54.389: E/AndroidRuntime(209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-06 06:38:54.389: E/AndroidRuntime(209): at dalvik.system.NativeStart.main(Native Method) 展开
01-06 06:38:54.389: E/AndroidRuntime(209): java.lang.NoClassDefFoundError: com.google.zxing.client.android.R$layout
01-06 06:38:54.389: E/AndroidRuntime(209): at com.google.zxing.client.android.CaptureActivity.onCreate
(CaptureActivity.java:156)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.os.Handler.dispatchMessage(Handler.java:99)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.os.Looper.loop(Looper.java:123)
01-06 06:38:54.389: E/AndroidRuntime(209): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-06 06:38:54.389: E/AndroidRuntime(209): at java.lang.reflect.Method.invokeNative(Native Method)
01-06 06:38:54.389: E/AndroidRuntime(209): at java.lang.reflect.Method.invoke(Method.java:521)
01-06 06:38:54.389: E/AndroidRuntime(209): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-06 06:38:54.389: E/AndroidRuntime(209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-06 06:38:54.389: E/AndroidRuntime(209): at dalvik.system.NativeStart.main(Native Method) 展开
若以下回答无法解决问题,邀请你更新回答
6个回答
展开全部
找不到关联类,请确认是否所有的activity类都在manifast文件中注册了,然后再清理下工程就OK了
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这个是类加载先后顺序的问题,你可以调整一下引包的顺序,或者看一下依赖包是否加载。如果都不是,那就需要看一下开发环境了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
可能缺少jar文件,或者jar文件没有添加到classpath
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
从字面的意思是未找到该类 后边是你的路径
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询