When I try to run a new blank Android app I get an error:
"The Android SDK Directory could not be found...".
I searched in google for a solution and I found out that I need to go to Tools -> Android -> Android SDK Manager
, and then I realized the buttons are disabled.
I did some checks:
in Tools -> Options -> Android Setting
for Android SDK Location and it's empty. Furthermore, the folder Programs Files(x86)\Android\android-sdk
contain only 1 folder named extras
I did a VS repair, twice, and nothing changed.
As I understand the problem, I don't have SDK and somehow VS can't install it properly.
Is there any manual way to install it or any other solution?
Edit: I've tried to uninstall Visual Studio and install again. It couldn't install everything successfully, here is the log:
Package 'JavaJDKV2,version=1.8.6,chip=x64' failed to install. Search URL https://aka.ms/VSSetupErrorReports?q=PackageId=JavaJDKV2;PackageAction=Install;ReturnCode=-1 Details Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\JavaJDKV2,version=1.8.6,chip=x64\jdk-8u181-windows-x64.exe" /quiet Return code: -1 Return code details: Unknown error (0xffffffff) Log C:\Users******\AppData\Local\Temp\dd_setup_20180828172213_290_JavaJDKV2.log Impacted workloads Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.8.27906.1) Impacted components Android SDK setup (API level 27) (Component.Android.SDK27,version=15.8.27906.1) Google Android Emulator (API Level 27) (Component.Google.Android.Emulator.API27,version=15.8.27906.1) Java SE Development Kit (8.0.1120.15) (Component.JavaJDK,version=15.6.27406.0)