Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The project is missing Android SDKs required for building

I'm attempting to build my first F# Android project in Visual Studio 2017 (Community Edition).

Immediately after creating a new project by using the F# - Android - Blank App template, the error window in Visual Studio displays the following message:

The project Foo is missing Android SDKs required for building. Double-click on this message and follow the prompts to install them.

No amount of double-clicking on the message causes prompts to appear.

I can't find an obvious place to download the Android SDK from:

The SDK manager that I remember from a while ago seems to have disappeared from the Android developer website.

I've installed Android Studio, which seemed to download some Android SDKs, but Visual Studio still can't seem to find whatever it's looking for.

like image 468
Roger Lipscombe Avatar asked Sep 01 '18 20:09

Roger Lipscombe


People also ask

How do I fix Android SDK missing?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

How install Android SDK build tools manually?

You will need to download the Android SDK without Android Studio bundled. Go to Android SDK and navigate to the SDK Tools Only section. Copy the URL for the download that's appropriate for your build machine OS. Unzip and place the contents within your home directory.


2 Answers

I had the same issue... and Tools -> Android -> Android SDK Manager was greyed out for me.

In the end I needed to go to Tools -> Options -> Xamarin -> Android Settings and then make sure that the "Auto Install Android SDKs" was ticked. Once I ticked this and then double clicked on the error the install window suddenly appeared.

Per teapeng's answer, you may need to restart Visual Studio for this change to take effect.

like image 50
Frank Avatar answered Oct 27 '22 12:10

Frank


Visual Studio includes an Android SDK Manager that you use to download Android SDK tools, platforms, and other components that you need for developing Xamarin.Android apps.

See Tools -> Android -> Android SDK Manager.

Under Platforms you'll find various Android versions for the emulator and under Tools you can install various tools.

Also

See Tools -> Options -> Xamarin -> Android Settings

There is a folder path called Android SDK Location, if it's empty you can browse for it yourself to find it.

like image 25
Jan Andersen Avatar answered Oct 27 '22 11:10

Jan Andersen