Reputation: 25
I created new android project and, after building it, got error: "aapt.exe" exited with code -1073741819 and "obj\Debug\android\bin\packaged_resources" do not exist. I really don't know what to do, because i didn't even do anything, just created it. I reinstalled everything, even xamarin for vs and android SDK. Still have the same problem.
Upvotes: 1
Views: 1866
Reputation: 1020
I think you have created/ rename any filename with "-" in your "drawable" folder.
Upvotes: 1
Reputation: 7392
There can be few reasons for this error.
First ensure that you have not added any files to the resources folder. You have mentioned its a brand new project and , so I assume , you have not. But in case, please ensure to remove the hyphen from the files names.
Please update to the latest version on Xamarin. Goto Tools menu -> Options -> Xamarin -> Other -> Click on "check updates" and ensure the latest Xamarin sdk has been installed.
Now ensure all the android component are installed. Again , Tools -> Options -> Xamarin -> Android Settings and ensure that JDK, SDK and NDK are correctly set and they have a green tick mark.
Finally Tools -> Android -> Android SDK Manager, and ensure that the Android SDK Platform has been installed for the API level that you targetting. (this is more of a sanity check).
Hope that works for you.
Upvotes: 1