Xamarin Studio Android App "aapt.exe" exited with error code -1073741819 MSB6006:

I just create a project and want to create and run it on my Android phone.

Here is the normal detail of my project. I did not put space and dashes in any of my files. while error MSB6006: "aapt.exe" exited with code -1073741819. Display

C:\Users\DeviceBee SAQE\AppData\Local\Android\android-sdk\build-tools\21.0.1\aapt.exe package -f -m -M "C:\Users\DeviceBee SAQE\AppData\Local\Temp\mwyidlg1.uvy \AndroidManifest.xml" -J "C:\Users\DeviceBee SAQE\AppData\Local\Temp\mwyidlg1.uvy" --custom-package app1.app1 -F "C:\Users\DeviceBee SAQE\AppData\Local\Temp\mwyidlg1.uvy \resources.apk.bk" -S obj\Debug\res -I "C:\Users\DeviceBee SAQE\AppData\Local\Android \android-sdk\platforms\android-12\android.jar" --auto-add-overlay --max-res-version 12 

C: \ Program Files (x86) \ MSBuild \ Xamarin \ Android \ Xamarin.Android.Common.targets (783.2): error MSB6006: "aapt.exe" exited with code -1073741819.

+5
source share
2 answers

Adding a TechNote Link - Removing the SDK 24 using the Android SDK Manager is a solution provided by @ali. Technote on this exact issue here is https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/ . Completely removing “24” from my car cleared it. There was simply no change in goals.

+2
source

I have some problem, after that I read the output error after seeing this:

  I:\Program Files\Android\android-sdk\build-tools\24.0.0-preview\aapt.exe package -f -m -M obj\Debug\android\manifest\AndroidManifest.xml -J "C:\Users\Ali Visual Studio\AppData\Local\Temp\5q0cnsx0.m3e" --custom-package app3.app3 -F obj\Debug\android\bin\packaged_resources.bk -S obj\Debug\res -I "I:\Program Files\Android\android-sdk\platforms\android-10\android.jar" --auto-add-overlay --max-res-version 10 (TaskId:200) 1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1698,3): error MSB6006: "aapt.exe" exited with code -1073741819. 1>Done executing task "Aapt". (TaskId:200) 1>Task "Touch" (TaskId:201) 1> Task Parameter:Files=obj\Debug\android\bin\packaged_resources (TaskId:201) 1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1724,3): error MSB3375: The file "obj\Debug\android\bin\packaged_resources" does not exist. 1>Done executing task "Touch" -- FAILED. (TaskId:201) 1>Done building target "_CreateBaseApk" in project "App3.csproj" -- FAILED.: (TargetId:130) 

Well, this line is my problem:

 I:\Program Files\Android\android-sdk\build-tools\24.0.0-preview\aapt.exe 

go to your installation build path and configure your build tools versions, you can update the build tools from the Android SDK Manager or delete the version if there is an error, I have built-in tools 23.0.1 and 23.0.2 and 24.0.0-preview (version by default - the latest version is 24.0.0-preview) I deleted the 24.0.0-preview folder and restored my project and it works.

+1
source

Source: https://habr.com/ru/post/1206795/


All Articles