eclipse中build没有apk输出

来源:互联网 发布:如果二战中国投降知乎 编辑:程序博客网 时间:2024/05/16 10:44

近期拿到一个新的android工程代码,导入eclipse后,先clean,再build,发现没有错误,但是没有apk出来。后来尝试“export unsigned application packet”,结果提示如下错误:

Export aborted because fatal lint errors were found. These are listed in the Problems view. Either fix these before running Export again, or turn off "Run full error check when exporting app" in the Android > Lint Error Checking preference page.

网上搜索得到解决办法:

Project -> properties, find Android Lint Preferences, in top to right click configure workspace settings... -> unclick "Run full error check when exporting app", apply done.

此后能成功生成apk文件。


此后,越发觉得这个方法用的不爽,就尝试寻找其他方法。

后来,在前辈那里学到了另外一招:

直接数据线接android手机,在eclipse中点击run,手机上程序成功运行起来,输出路径下也生成了apk。


估计是adt有bug,导致直接build工程不能生成apk