Don't see Android SDK and AVD Manager when execute android tool command

后端 未结 11 567
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 08:49

I\'m developing android on Mac OS.

In the first time, I use android tool command (/tools/android) to launch Android SDK and

相关标签:
11条回答
  • 2020-12-29 09:25

    I downloaded and installed Android 4.0.3 (API 15) today and there is no "avd" tool in the /tools/ or the /platform-tools/ folder. However, you can access the Android Virtual Device Manager (AVD Manager) through the Android SDK Manager.

    • execute the "android" tool with no arguments in the "Tools" window,
    • select "Manage AVDs"
    0 讨论(0)
  • 2020-12-29 09:26

    You can also add <sdk>/tools to your PATH if you use it often. Open your ~/.bashrc file and add this line:

    # <sdk> is path to your SDK, e.g. /Users/akarienta/Library/Android/sdk
    export PATH=${PATH}:<sdk>/tools  
    

    Then just reload the file by source ~/.bashrc or restart the terminal. Since now you can use commands like these (in whatever location you are):

    # opens Android SDK Manager
    $ android
    # opens Android AVD Manager
    $ android avd
    
    0 讨论(0)
  • Credit to user1450537 who gave this answer:

    "I know its a bit late answer but for future generations - this is how its done: Click on Window > Customize perspective > Command Groups Availability tab. Check the "Android SDK and AVD Manager" option and hit the OK button."

    0 讨论(0)
  • 2020-12-29 09:30

    You can use the command line for opening Android SDK Manager, but make sure Android SDK manager is installed in your machine.

    Use this command in terminal: ./android avd

    0 讨论(0)
  • 2020-12-29 09:31

    From the Terminal change to the <sdk>/tools/ directory and type the following to display the AVD Manager window (I'm using android-sdk r15):

    $ android avd

    0 讨论(0)
  • 2020-12-29 09:33

    On the Run Configurations screen, there is a "Manager..." button, which will open up the AVD Manager. You must first select "Automatically pick compatible device..." to enable the "Manager..." button.

    0 讨论(0)
提交回复
热议问题