Android 常见问题

开发环境:
Eclipse

  • 问题 1
    在一次将项目导入工程之后出现以下的问题:
java.lang.ClassNotFoundException: Didn't find class "com.demo.xxxActivity" on path: DexPathList[[zip file 
异常信息 经过一番折腾,和查阅资料得到
解决方式:
前提是排除Activity的引用问题。
1>在Java Build Path 中选中你需要的 jar文件,选中的当中的 “√”,这样才能引用
2>引起该问题的原因还有就是升级的ADT,但是在实际应用的时候还没有遇到
  • 问题 2
Unable to execute dex:method ID not in [0,0xffff]:65536

解决方式:

在Java Build Path 中的 Order and Export 一栏,
去除 Android Private Libraries 、Android Dependencies 的对“√”号,也就是不选中这个引用!

猜你喜欢

转载自blog.csdn.net/wlytctw/article/details/52880916