Issue
After reinstalling Windows/Visual Studio 2015/Xamarin I can no longer compile Android projects as Xamarin cannot locate the Android SDK.
I installed the Android SDK via the Xamarin installer to the default path (AppData) and as you can see from the screenshot the path is configured correctly.
When I run a build I get the following error as the Android SDK path Xamarin is searching for is in Program Files (x86)
despite the Android SDK location
setting pointing to AppData.
No Android platform found. Please click here to open the SDK Manager and install an Android SDK Platform.
How can I configure Xamarin to use the Android SDK in AppData?
Additional info:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools\Path
is also pointing to AppData
I dont think its relevant but I used the Windows 10 reset & keep files feature to reinstall, perhaps it left some residual configuration that is conflicting with the new installation...
Solution
Confirm you have correct android api level installed. In your case android API level 25. Copy your exact android-sdk path from Xamarin settings into explorer address. and then navigate into the platforms subfolder from there to ensure it is installed in that exact location e.g. android-sdk\platforms\android-25? I know there is a program files x86 error but please check android-25 folder is in your specified sdk path.
Try run xdecleanup.exe in C:\Program Files (x86)\Microsoft XDE
(I know you have tried this but for answer robustness sake) Ensure HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tool points to the correct sdk location
restart your pc and try a clean rebuild
Answered By - Steven Mark Ford
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.