ClassNotFoundException的上AndroidAnnotations生成的,因为更新类ADT 22 [英] ClassNotFoundException on AndroidAnnotations generated classes since update to ADT 22

查看:528
本文介绍了ClassNotFoundException的上AndroidAnnotations生成的,因为更新类ADT 22的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该项目更新到ADT22之前,创造了奇迹。我已经失去了一天,因为不知道我必须下载的生成工具的,我怕我会宽松另一个因为这个原因。

This project worked wonders before updating to ADT22. I already lost a day because of not knowing I had to download build tools, and I'm afraid I'm going to loose another one because of this.

当我尝试建立相同的code这是工作前两天,我得到这个异​​常:

When I try to build the same code that was working two days ago, I get this exception:

com.cidaut.blueparking fatal error : Unable to instantiate activity \
    ComponentInfo{com.cidaut.blueparking/com.cidaut.blueparking.SplashScreen_}: \
    java.lang.ClassNotFoundException: \
    Didn't find class "com.cidaut.blueparking.SplashScreen_" on path: \
    /data/app/com.cidaut.blueparking-1.apk
java.lang.RuntimeException: Unable to instantiate activity \
    ComponentInfo{com.cidaut.blueparking/com.cidaut.blueparking.SplashScreen_}: \
    java.lang.ClassNotFoundException: \
    Didn't find class "com.cidaut.blueparking.SplashScreen_" on path: \
    /data/app/com.cidaut.blueparking-1.apk

  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
  at android.app.ActivityThread.access$600(ActivityThread.java:141)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:5041)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  at dalvik.system.NativeStart.main(Native Method)

Caused by: java.lang.ClassNotFoundException: \
    Didn't find class "com.cidaut.blueparking.SplashScreen_" on path: \
    /data/app/com.cidaut.blueparking-1.apk
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
  ... 11 more

其实我觉得很奇怪,它正试图找到类的APK文件,但不管。有没有什么解决办法?

I actually find it weird that it is trying to find the class on the APK file, but whatever. Is there any solution to this?

顺便说一句,我的的classpath 的包括源文件夹AndroidAnnotations产生code,所以这不是问题。

By the way, my classpath includes the source folder where AndroidAnnotations generates the code, so that's not the issue.

下面是我的订单和出口的窗口

AndroidAnnotations类生成错误日志

AndroidAnnotations class generation error log

编辑:现在,它正在

我遵循的程序是这样的:

The procedure I followed was this:

  1. 清洁和重建一切
  2. 检查家居上的订单和出口的的标签项目(包括主体工程和库)
  3. 清洁并再次重建一切
  1. Clean and rebuild everything
  2. Check everything on the Order and Export tab of every project (both the main project and the libraries)
  3. Clean and rebuild everything again

它的工作原理了。我简直不敢相信我已经失去了,因为这近12小时... ...

It works now. I can't believe I have lost almost 12 hours because of this...

推荐答案

转至配置构建路径,然后点击旁边的选中标记您的所有所需的库排序和导出选项卡

Go to the "Order And Export" tab of "Configure Build Path" and click the check mark next to all of your required libraries

这篇关于ClassNotFoundException的上AndroidAnnotations生成的,因为更新类ADT 22的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆