“aapt.exe"退出代码 -1073741819 [英] "aapt.exe" exited with code -1073741819

查看:30
本文介绍了“aapt.exe"退出代码 -1073741819的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Xamarin Studio 和 Xamarin for Visual Studio 2015-试用版.所有版本均为最新的稳定版本.我从一个新的 android 项目开始,但是当构建不会成功时.我查了谷歌,这似乎是一个反复出现的问题.我也更新了所有的 sdk 工具.其中一个博客说要从系统中卸载并重新安装所有 xamarin.也是这样做的.但是完全没有效果.问题还是一样.

I just installed Xamarin Studio and Xamarin for visual studio 2015- trial version. All versions are the latest stable versions. I start with a new android project, but when the build won't succeed. I checked google, and it seems like a recurring problem. I've all my sdk tools updated as well. One of the blogs said to uninstall and reinstall everything xamarin from system. Did that as well. But to absolutely no avail. The problem is still the same.

在 xamarin 论坛上,已经存在类似的问题:http://forums.xamarin.com/discussion/11311/build-fails-on-android-projects-appt-exe-exited-with-code-1073741816但它仍然没有得到正确的回答.这是我在打开详细模式的情况下从 Visual Studio 生成的构建输出.

on xamarin forum, a similar question is already there: http://forums.xamarin.com/discussion/11311/build-fails-on-android-projects-appt-exe-exited-with-code-1073741816 But it's still not properly answered. Here's my build output from visual studio with verbose mode on.

[https://docs.google.com/document/d/1Ue0o4YiYeegxLoWep-yTrUJQFIC90G24CTZYztIPXC4/edit?usp=sharing](构建视觉工作室的输出(详细模式))

[https://docs.google.com/document/d/1Ue0o4YiYeegxLoWep-yTrUJQFIC90G24CTZYztIPXC4/edit?usp=sharing](Build Output from visual studio (verbose mode on) )

问题似乎与 MSBuild 配置参数错误配置或未配置有关.不确定,但我相信它与 _UpdateAndroidResgen 相关.

The problem looks to be related to MSBuild configuration params misconfigured or not-configured. Not sure but i believe it is something related to _UpdateAndroidResgen .

当我使用管理员权限从 cmd 运行此命令时,我得到:

When I run this command from cmd with adminsitrator priviliges, I get this:

C:UsersPratikAppDataLocalAndroidandroid-sdkuild-tools21.0.1aapt.exe包 -f -m -MC:UsersPratikAppDataLocalTempkantu3nz.kiaAndroidManifest.xml -JC:UsersPratikAppDataLocalTempkantu3nz.kia --custom-packageapp1.app1 -FC:UsersPratikAppDataLocalTempkantu3nz.kia esources.apk.bk -SC:AndroidProjectsApp1App1objDebug es -IC:UsersPratikAppDataLocalAndroidandroid-sdkplatformsandroid-21android.jar--auto-add-overlay

C:UsersPratikAppDataLocalAndroidandroid-sdkuild-tools21.0.1aapt.exe package -f -m -M C:UsersPratikAppDataLocalTempkantu3nz.kiaAndroidManifest.xml -J C:UsersPratikAppDataLocalTempkantu3nz.kia --custom-package app1.app1 -F C:UsersPratikAppDataLocalTempkantu3nz.kia esources.apk.bk -S C:AndroidProjectsApp1App1objDebug es -I C:UsersPratikAppDataLocalAndroidandroid-sdkplatformsandroid-21android.jar --auto-add-overlay

aapt.exe 崩溃,尝试调试时,显示 AccessViolationException.

aapt.exe crashes, and when trying to debug, it shows AccessViolationException.

非常感谢任何相关建议.

Any relevant suggestions are highly appreciated.

谢谢.

推荐答案

正如问题中已经提到的,重新安装所有 Xamarin 也不起作用.卸载 Visual Studio 2015 有效.以下步骤成功了(至少对我而言):

As already mentioned in the question, re-installing everything Xamarin also did not work. Uninstalling visual studio 2015 worked. The following steps did the trick (for me, at least):

1) 卸载 Visual Studio 2015 测试版.

1) Uninstall visual studio 2015 beta.

2) 卸载 Visual Studio 的 Xamarin.

2) Uninstall Xamarin for visual studio.

3) 重新启动系统.

4) 重新安装 Xamarin Studio.现在,可以使用 Xamarin Studio 和 VS2013 进行编译.

4) Re-install Xamarin studio. Now, the compiles with both Xamarin studio as well as VS2013.

PS:这是最后的解决方案之一.任何更好、更准确的答案总是受欢迎的.

PS: This is one of those last-resort solutions. Any better and more accurate answers are always welcome.

这篇关于“aapt.exe"退出代码 -1073741819的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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