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.
source share