4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

时间:2021-01-23 20:41:18

Android 程序开发完成后,如果要发布到互联网上供别人使用,就需要将自己的程序打包成Android 安装包文件(Android Package,APK),其扩展名为.apk。使用run as 也能生成一个APK安装包,但是使用run as 生成的是测试的安装包,只供开发者自己测试使用。

接下来就以HelloWord程序为例演示如何生成正式的APK文件。

1.右键项目名称,依次选择Android Tools——>Explort Signed Application Package,如图所示:

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

但是很不幸,这时并没有像书上所说的那样进入Project Check界面,而是报了一个这样的错误。

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

遇到这个问题,我顿时感觉头都大了,找了半天都没有找到关于"Run full error check when exporting app"选项在哪里?

于是我开始通过百度查找资料,最后终于找到一个和我遇到相同问题的。

参考两篇博文后找到了解决方法。

博文一:Android Export aborted because fatal error were founds [closed]

博文二: [转](Eclipse打包问题)Export aborted because fatal lint errors we

于是我按照上面的方法:

具体解决方案如下:

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

故障解除后,按照书上操作:

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]

4.Android 打包时出现的Android Export aborted because fatal error were founds [closed]