AAPT失败,错误code -1073741819 [英] AAPT failing with error code -1073741819

查看:168
本文介绍了AAPT失败,错误code -1073741819的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

建设项目投从AAPT下面的错误。我已经重建项目,但它仍然是失败的。我找不到任何引用的任何地方这是什么错误code实际意义。我使用的Java 6和Android工具,R19中的IntelliJ与ActionBarSherlock V4.1.0。

  I / O错误:命令
C:\ Android的SDK-WINDOWS \平台工具\ aapt.exe包-m --auto-附加叠加--extra-包com.actionbarsherlock -J C:\Users\Ollie\.IntelliJIdea11\system\compiler\project6.b9f5599b\.generated\aapt\Project.9617c193\production -MC:/Users/Ollie/Documents/Dropbox/Tech/project6/Source/project6/AndroidManifest.xml -SC:/用户/奥利/文档/保管箱/技术/ project6 /来源/ project6 / RES -SC:/用户/奥利/文档/保管箱/技术/ project6 /来源/ actionbarsherlock / RES -IC:\ Android的SDK-WINDOWS \平台\ Android为14 \的android.jar
执行失败,退出code -1073741819
 

此构建失败开始发生后,我添加了一个依赖从我的项目的ActionBarSherlock库项目。如果我删除的依赖,该项目构建的罚款。如果我想补充回来,再次失败。

解决方案

我在windows下这个问题

,我通过在styles.xml样式项目的定义中删除@ + ID固定它。我跟别人谁不知道到底为什么,但一直使用+ ID的风格文件,经常会出现问题发现。

Building the project throws the following error from AAPT. I've rebuilt the project, but it is still failing. I can't find any references anywhere to what this error code actually means. I'm using Java 6, and Android tools r19 in IntelliJ with ActionBarSherlock v4.1.0.

I/O error: Command
"C:\android-sdk-windows\platform-tools\aapt.exe package -m --auto-add-overlay --extra-packages com.actionbarsherlock -J C:\Users\Ollie\.IntelliJIdea11\system\compiler\project6.b9f5599b\.generated\aapt\Project.9617c193\production -M C:/Users/Ollie/Documents/Dropbox/Tech/project6/Source/project6/AndroidManifest.xml -S C:/Users/Ollie/Documents/Dropbox/Tech/project6/Source/project6/res -S C:/Users/Ollie/Documents/Dropbox/Tech/project6/Source/actionbarsherlock/res -I C:\android-sdk-windows\platforms\android-14\android.jar"
execution failed with exit code -1073741819

This build failure started happening after I added a dependency from my project to the ActionBarSherlock library project. If I remove that dependency, the project builds fine. If I add it back, it fails again.

解决方案

I had this problem under windows, I fixed it by removing a @+id in a style item definition in the styles.xml. I spoke to someone else who didn't know exactly why but had found using +id in style files to often cause problems.

这篇关于AAPT失败,错误code -1073741819的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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