AAPT 失败,错误代码

编程入门 行业动态 更新时间:2024-10-24 20:11:48
本文介绍了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 失败,错误代码

本文发布于:2023-11-06 01:22:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562369.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误代码   AAPT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!