Xamarin.android Error - 'the Specified Executable Is Not A Valid Application For This Os Platform'
I have searched for a solution, to no avail. I am trying to build a Xamarin.Android project but i keep getting the error detailed below. I Am running Visual Studio 2017 Community E
Solution 1:
"Aapt" task failed
System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.
Check if you have a valid/non-corrupted Android SDK aapt.exe
/ aapt
installed.
1) Locate the Android SDK root directory location that Visual Studio is using:
- Mac:
- Windows:
Open a shell and cd
into your root Android SDK directory and try manually executing aapt.exe
/ aapt
.
Note: It will be located within in a subdirectory build-tools\XX.X.X
(Currenty XX.X.X
will be 27.0.0
if your SDK is update to date)
If aapt
is valid it will output all of its usages options, otherwise open the Android SDK Manager and uninstall / re-install the latest version of the Build Tools
Post a Comment for "Xamarin.android Error - 'the Specified Executable Is Not A Valid Application For This Os Platform'"