我使用android注释设置项目,然后在SVN结账后检入svn,问题就开始了,如果有人有经验,请做点什么
08-14 13:02:31.097:W / dalvikvm(16362):threadid = 1:线程退出,未捕获异常(group = 0x41948ba8) 08-14 13:02:31.097:W / System.err(16362):java.lang.RuntimeException:无法实例化活动ComponentInfo {}:java.lang.ClassNotFoundException:未找到类&# 34; com.MainActivity " on path:DexPathList [[zip file" / data / app /"],nativeLibraryDirectories = [/ data / app-lib / com-2,/ vendor / lib,/ system / lib]] 08-14 13:02:31.097:W / System.err(16362):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110) 08-14 13:02:31.097:W / System.err(16362):在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 08-14 13:02:31.097:W / System.err(16362):在android.app.ActivityThread.access $ 800(ActivityThread.java:135) 08-14 13:02:31.097:W / System.err(16362):在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1196) 08-14 13:02:31.097:W / System.err(16362):在android.os.Handler.dispatchMessage(Handler.java:102) 08-14 13:02:31.097:W / System.err(16362):在android.os.Looper.loop(Looper.java:136) 08-14 13:02:31.097:W / System.err(16362):在android.app.ActivityThread.main(ActivityThread.java:5001) 08-14 13:02:31.097:W / System.err(16362):at java.lang.reflect.Method.invokeNative(Native Method) 08-14 13:02:31.097:W / System.err(16362):at java.lang.reflect.Method.invoke(Method.java:515) 08-14 13:02:31.097:W / System.err(16362):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:785) 08-14 13:02:31.097:W / System.err(16362):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 08-14 13:02:31.097:W / System.err(16362):at dalvik.system.NativeStart.main(Native Method) 08-14 13:02:31.107:W / System.err(16362):引起:java.lang.ClassNotFoundException:没找到类" .MainActivity _" on path:DexPathList [[zip file" /data/app/com.-2.apk"],nativeLibraryDirectories = [/ data / app-lib / com.-2,/ vendor / lib,/ system / lib中]] 08-14 13:02:31.107:W / System.err(16362):at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 08-14 13:02:31.107:W / System.err(16362):at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 08-14 13:02:31.107:W / System.err(16362):at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 08-14 13:02:31.107:W / System.err(16362):在android.app.Instrumentation.newActivity(Instrumentation.java:1061) 08-14 13:02:31.107:W / System.err(16362):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2101) 08-14 13:02:31.107:W / System.err(16362):... 11 more
答案 0 :(得分:0)
latter i found this answer
->Right click the project
->select Property
->select Java Compiler
->select Annotation processing
->Select Factory Path
there remove the jar file and re add the jar file, the do Apply, then give OK