ADT Bundle编译应用程序成功但是部署提示Could not find class的解决方法
2013-08-02 17:36
441 查看
环境:
使用的开发环境是 ADT Bundle for Windows 集成开发环境,说白了就是集成了ADT工具的Eclipse
With a single download, the ADT Bundle includes everything you need to begin developing apps:
Eclipse + ADT plugin
Android SDK Tools
Android Platform-tools
The latest Android platform
The latest Android system image for the emulator
版本为Android Developer Tools Build: v22.0.1-685705
问题:
应用程序在Eclipse中编译成功,但是部署到手机运行时,出现错误
08-02 08:30:10.497: E/dalvikvm(1472): Could not find class '[Lorg.apache.commons.httpclient.methods.multipart.Part;',
......
出问题的类所在的jar包是第三方jar包,我把这个jar放到工程根目录下新建的lib目录,然后Add to build path
解决办法:
在网上搜了一些,有文章提到新的ADT环境中,这些第三方jar要放到libs而非lib中
照做,问题顺利解决。
使用的开发环境是 ADT Bundle for Windows 集成开发环境,说白了就是集成了ADT工具的Eclipse
With a single download, the ADT Bundle includes everything you need to begin developing apps:
Eclipse + ADT plugin
Android SDK Tools
Android Platform-tools
The latest Android platform
The latest Android system image for the emulator
版本为Android Developer Tools Build: v22.0.1-685705
问题:
应用程序在Eclipse中编译成功,但是部署到手机运行时,出现错误
08-02 08:30:10.497: E/dalvikvm(1472): Could not find class '[Lorg.apache.commons.httpclient.methods.multipart.Part;',
......
出问题的类所在的jar包是第三方jar包,我把这个jar放到工程根目录下新建的lib目录,然后Add to build path
解决办法:
在网上搜了一些,有文章提到新的ADT环境中,这些第三方jar要放到libs而非lib中
照做,问题顺利解决。
相关文章推荐
- 安装MyEclipse时,双击安装包后出现“could not find main class”的错误提示的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- Xcode真机调试运行时提示:could not find Developer Disk Image 解决方法
- hibernate实体类报错:Could not find a setter for property * in class * 解决方法
- 在centos中运行java命令时出现Error: Could not find or load main class XXX问题的解决方法
- 安装mysql出现Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法
- linux安装mysql出现Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解决方法
- 【解决方法】Could not find the main class Program will exit
- Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode.解决方法
- maven项目图标带红色感叹号(红灯、红点、红线)且保存时无法自动编译(无法生成class文件,提示Error: Could not find or load main class,或者代码改动后输出
- maven项目,多个依赖,打成一个可执行jar包,可根据profiles进行打包,出现的Could not find or load main class的解决方法。
- could not find a getter for in class方法解决
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- 解决Win7/XP中双击jar文件出现could not find the main class的方法
- 双击jar包出现:could not find the main class .和could not create the java virtual machine.win7/xp解决方法详解