Android的Eclipse的错误执行AAPT:返回code 139 [英] Android Eclipse Error executing aapt: return code 139

查看:598
本文介绍了Android的Eclipse的错误执行AAPT:返回code 139的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有突然停止工作一个Android应用程序项目。显然有没有错误,但是当我尝试启动,我得到这样的:

I have an Android application project that suddenly stopped to work. There is apparently no error, but when I try to launch, I get this:

错误执行AAPT:返回code 139

Error executing aapt: return code 139

我试图清理项目及其依赖库项目,重新启动Eclipse的,更新到最新的ADT和SDK版本等,但都以失败告终。我有时也(不改变任何东西)有这等错误:

I tried to clean the project and its dependent library project, restarted Eclipse, updated to latest ADT and SDK versions, etc. but all failed. I also have this other error sometimes (without changing anything):

错误产生最终的归档文件:java.io.FileNotFoundException:   ... /斌/ resources.ap_不存在

Error generating final archive: java.io.FileNotFoundException: .../bin/resources.ap_ does not exist

我完全失去了。

更多信息

我花了几个小时逐件拆卸和重新组装件的一切,终于发现是什么原因导致这些错误,但我还是不明白什么好......我有这样的资源:

I spent hours to disassemble and reassemble everything piece by piece, and finally found what causes these errors, though I still don't understand anything better... I had a resource like this:

<resources>
<integer-array name="titi">
<item>@+id/toto</item>
</integer-array>
</resources>

我删除它,一切又曾...当然,资源文件没有错误可言。半天讲不出什么,这个Eclipse正在快把我逼疯了8 /我是唯一一个?

I removed it and everything worked again... Of course the resource file had no error at all. Half a day lost for nothing, this Eclipse is driving me mad 8-/ Am I the only one?

推荐答案

刚刚有同样的问题,问题是,我有其中有一个 Android的菜单文件夹中的菜单文件:标题= @string /.."未在我的字符串文件存在。之后将其添加并做了项目&GT;清洁这个问题已经一去不复返了。

Just had the same issue and the problem was that I had a menu file inside the menu folder which had an android:title="@string/.." that did not exist in my strings file. After adding it and doing a Project > Clean the problem is gone.

这篇关于Android的Eclipse的错误执行AAPT:返回code 139的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆