您的位置:首页 > 其它

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中

照做,问题顺利解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐