<div class08-28 22:48:42.112: D/AndroidRuntime(1324): Shutting down VM
08-28 22:48:42.112: W/dalvikvm(1324): threadid=1: thread exiting with uncaught exception (group=0xa4d46b20)
08-28 22:48:42.112: E/AndroidRuntime(1324): FATAL EXCEPTION: main
08-28 22:48:42.112: E/AndroidRuntime(1324): Process: com.hj.post.tscale, PID: 1324
08-28 22:48:42.112: E/AndroidRuntime(1324): java.lang.RuntimeException: Unable to instantiate application com.hj.post.tscale.ErpPostApplication: java.lang.ClassNotFoundException: Didn't find class "com.hj.post.tscale.ErpPostApplication" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib]]
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.os.Handler.dispatchMessage(Handler.java:102)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.os.Looper.loop(Looper.java:136)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.main(ActivityThread.java:5001)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.reflect.Method.invoke(Method.java:515)
08-28 22:48:42.112: E/AndroidRuntime(1324): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
08-28 22:48:42.112: E/AndroidRuntime(1324): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
08-28 22:48:42.112: E/AndroidRuntime(1324): at dalvik.system.NativeStart.main(Native Method)
08-28 22:48:42.112: E/AndroidRuntime(1324): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.hj.post.tscale.ErpPostApplication" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib]]
08-28 22:48:42.112: E/AndroidRuntime(1324): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.Instrumentation.newApplication(Instrumentation.java:975)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
08-28 22:48:42.112: E/AndroidRuntime(1324): ... 11 more
="iteye-blog-content-contain" style="font-size: 14px"></div>
上周做项目的时候遇到ClassNotFoundException,经过漫长的探究,有的同行说引用的jar包启用且移动到顶部,但是试了,没有用,最终发现时Manifest中application中hashCode为true导致
got a ClassNotFoundException on make android project last week,at end of long search ,somebody say the jar libary should be top on the buildpath ,but not work,at last found reason ,because the hashCode tag in application in mainfest is false
08-28 22:48:42.112: W/dalvikvm(1324): threadid=1: thread exiting with uncaught exception (group=0xa4d46b20)
08-28 22:48:42.112: E/AndroidRuntime(1324): FATAL EXCEPTION: main
08-28 22:48:42.112: E/AndroidRuntime(1324): Process: com.hj.post.tscale, PID: 1324
08-28 22:48:42.112: E/AndroidRuntime(1324): java.lang.RuntimeException: Unable to instantiate application com.hj.post.tscale.ErpPostApplication: java.lang.ClassNotFoundException: Didn't find class "com.hj.post.tscale.ErpPostApplication" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib]]
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4301)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.os.Handler.dispatchMessage(Handler.java:102)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.os.Looper.loop(Looper.java:136)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.ActivityThread.main(ActivityThread.java:5001)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.reflect.Method.invoke(Method.java:515)
08-28 22:48:42.112: E/AndroidRuntime(1324): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
08-28 22:48:42.112: E/AndroidRuntime(1324): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
08-28 22:48:42.112: E/AndroidRuntime(1324): at dalvik.system.NativeStart.main(Native Method)
08-28 22:48:42.112: E/AndroidRuntime(1324): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.hj.post.tscale.ErpPostApplication" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib]]
08-28 22:48:42.112: E/AndroidRuntime(1324): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
08-28 22:48:42.112: E/AndroidRuntime(1324): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.Instrumentation.newApplication(Instrumentation.java:975)
08-28 22:48:42.112: E/AndroidRuntime(1324): at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
08-28 22:48:42.112: E/AndroidRuntime(1324): ... 11 more
="iteye-blog-content-contain" style="font-size: 14px"></div>
上周做项目的时候遇到ClassNotFoundException,经过漫长的探究,有的同行说引用的jar包启用且移动到顶部,但是试了,没有用,最终发现时Manifest中application中hashCode为true导致
got a ClassNotFoundException on make android project last week,at end of long search ,somebody say the jar libary should be top on the buildpath ,but not work,at last found reason ,because the hashCode tag in application in mainfest is false