android,ClassNotFoundException

<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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值