Android studio SDK manager is missing

2019-03-31 12:26发布

问题:

I am following this ionic tutorial and having some trouble with setting up the SDK in Android Studio in order to test my ionic project. I am looking for the SDK manager however it seems to be missing. When I select the configure drop down menu there should be an SDK manager option however it is absent (as you can see in the following image):

Likewise when I select settings > Appearance and Behaviour > System settings, Android SDK should be an option here.

I tried selecting project structure and adding a new SDK like this answer however Android SDK was not an option as you can see in the following image.

Note: I had installed Android Studio a few years ago and it was working but uninstalled it again. I've tried to make sure everything was cleaned out before installing it again (i.e deleted the AndroidStudioProjects folder that was left) however I'm not sure what else to look for.

Also If there is another way I can test my ionic build (as opposed to downloading android studio) then I would be grateful if you could advise. Thank for any help.

回答1:

You have accidently disabled Android Support plugin in your plugin list. Try enable it and restart Android Studio.

To be detailed: In your first picture, Configure -> Plugins, tick almost everything to enable (for me which is also using Android Studio 3.1.3, there are Android Support, Android APK Support, Firebase Services, Google Developers Samples, Firebase App Indexing, Firebase Testing, Test Recorder, Google Services, Google Cloud Tools For Android Studio, Android NDK Support, Android Games and App Links Assistant), then OK to Restart Android Studio.



回答2:

Follow these steps after uninstalling previous version of Android studio:

  1. Download SDK zip file from here --> developer.android.com

  2. Extract the zip file.

  3. Copy and paste that extracted folder into Applications/Android Studio/

  4. Open Android Studio. Go to: (Quick Start) / Configure / Project Defaults / Project Structure / (Android SDK Location) and browse SDK folder.
  5. Apply and save.