Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I just create a project and wanna build and run this in my Android phone.

Here is Normal detail of my project Output. I did not put space and dash in any of my file. while error 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.

like image 206
Arsal Avatar asked Oct 19 '22 22:10

Arsal


1 Answers

Adding TechNote link - Remove SDK 24 using the Android SDK Manager is the solution as noted by @ali. Technote on this exact issue here - https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/ . Totally removing "24" from my machine cleared it. Just changing targets did not.

like image 85
Joe Healy Avatar answered Oct 28 '22 22:10

Joe Healy