Using Visual Studio 2019 on Windows, I am having some problems with running an Android project.
First off. When I run the SDK Manager, I get this in the console:
No Android SDK instance matching the 'C:\Program Files (x86)\Android\android-sdk' path
Android component "tools" is obsolete, please install "cmdline-tools"
Trying to fallback to "tools"...
File 'C:\Program Files (x86)\Android\android-sdk\cmdline-tools\android.bat' not found for 'Android SDK Core'
File 'C:\Program Files (x86)\Android\android-sdk\cmdline-tools\mksdcard.exe' not found for 'Android SDK Core'
File 'C:\Program Files (x86)\Android\android-sdk\cmdline-tools\emulator.exe' not found for 'Android SDK Core'
I had my Path Environment Variables ANDROID_HOME and ANDROID_SDK_ROOT set to Android Studio's sdk path, and felt that might be the problem. So I changed them to C:\Program Files (x86)\Android\android-sdk. That did not help.
I also installed the command-line tools.
That doesn't help either.
I was wondering if there is some conflict going on with Android Studio and Visual Studio since I realized the adb was used from the path, which is Android Studio's sdk path.
I am wondering if I can follow the advice given in this post - Can Android Studio and Visual Studio safely share the same Android SDK? What would Microsoft or Android Studio developers say?
I think that would be a great advantage, if that could work.
The other thing is, I can't debug my Android project, because, 1) Visual Studio creates a default emulator that is not working, perhaps because of these other issues I have to get sorted out.
I'm getting a message telling me I don't have API 28 installed, which I do.
2) Visual Studio does not use any of the emulators I create. not even the latest one.
What's the best way to go about solving these issues, so that I can have a problem free Android working environment?