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

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

问题描述

构建项目从 AAPT 抛出以下错误.我已经重建了该项目,但它仍然失败.我在任何地方都找不到此错误代码实际含义的任何参考.我在 IntelliJ 中使用 Java 6 和 Android 工具 r19 和 ActionBarSherlock v4.1.0.

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-windowsplatform-toolsaapt.exe package -m --auto-add-overlay --extra-packages com.actionbarsherlock -J C:UsersOllie.IntelliJIdea11systemcompilerproject6.b9f5599b.generatedaaptProject.9617c193production -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-windowsplatformsandroid-14android.jar"
execution failed with exit code -1073741819

在我将项目的依赖项添加到 ActionBarSherlock 库项目后,此构建失败开始发生.如果我删除该依赖项,则项目构建良好.如果我重新添加它,它会再次失败.

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.

推荐答案

我在 windows 下遇到了这个问题,我通过删除styles.xml 中样式项定义中的@+id 解决了这个问题.我与其他人交谈过,他们不知道确切原因,但发现在样式文件中使用 +id 经常会导致问题.

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 失败,错误代码 -1073741819的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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