在 Eclipse 中为 Android 项目构建 *.apk 文件时,aapt.exe 抛出未处理的异常 [英] aapt.exe is throwing unhandled exception while building *.apk file for Android project in Eclipse

查看:38
本文介绍了在 Eclipse 中为 Android 项目构建 *.apk 文件时,aapt.exe 抛出未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的系统升级到 Ice Cream Sandwich (Android 4.0),现在每次我尝试在调试器中运行我的应用程序时,我都会在 aapt.exe 中崩溃.

i just upgraded my system to Ice Cream Sandwich (Android 4.0) and now everytime I attempt to run my application in the debugger, I get a crash in aapt.exe.

如果我只是构建,它构建得很好,但是当我在调试器中运行它时,aapt.exe 崩溃(它弹出一个对话框并询问我是否要将数据发送到Microsoft) 和我在 Project_Explorer 中的项目图标显示它有错误.

If I just build, it builds fine, but when I go to run it in the debugger, aapt.exe crashes (which pops up a dialog and asks me if I want to send data to Microsoft) and my project icon in Project_Explorer shows that it has error(s).

推荐答案

AAPT for r15 存在一个已知问题,尝试将构建输出更改为正常
http://tools.android.com/knownissues
当构建输出设置为详细时,AAPT 在某些情况下会在 Windows 上崩溃.

There is a known issue in AAPT for r15, try to change the build output to normal
http://tools.android.com/knownissues
AAPT crashes on Windows in some cases when the build output is set to verbose.

解决方法是设置

Eclipse >首选项安卓>构建 >构建输出

小于 Verbose,例如正常.我们有一个修复程序,它将在工具 16 中提供.[问题 20395]

to less than Verbose, e.g. Normal.We have a fix, which will be available in tools 16. [Issue 20395]

这篇关于在 Eclipse 中为 Android 项目构建 *.apk 文件时,aapt.exe 抛出未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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