张晨的个人博客

Eclipse运行安卓/Android项目报错Installation failed due to invalid APK file

张晨的个人博客2014-12-12安卓技术 3517 0A+A-

    当安卓/android项目中有jar包没被使用时会报这样的错误,一般后台也会提示:The library 'armeabi.jar' contains native libraries that will not run on the device. 这个armeabi.jar没在设备中使用,删除此jar包就可以正常运行安卓/android项目了

    如果以上还是不能运行可以,在 项目右键-->Properties-->java Build Path --> Source --> Remove 项目对应的gen包 -->删除项目中自动生成的gen文件夹,然后会自动生成对应的gen文件夹,再重新执行看看

发表评论