From the docs:
To run the AVD Manager, do one of the following:
- In Android Studio, select Tools > Android > AVD Manager.
- Click AVD Manager in the toolbar.
Neither of these things exist.
I went into the settings and found the AVD Manager menu item that isn't displayed, and assigned it a keyboard shortcut, but it didn't do anything.
Other sources on the web mention running android avd
to start the AVD Manager, but this was deprecated and removed.
**************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools\bin\sdkmanager.bat
and tools\bin\avdmanager.bat
**************************************************************************
Invalid or unsupported command "avd"
How do I open the AVD Manager?
The React Native CLI creates an Android project in the
android
directory.In Android Studio, you can import (or open) this folder as a project, rather than the outer directory, and the Tools > Android option should appear. (It might take a few seconds for some reason.)
Just create a new project, then you will get a gradle sync message like this:
Then click the link to install Build Tools.
And that's all
I got the same problem.
Check you don't have any errors on the bottom of android studio. I got one with sdk build. If you got the same click on the link in error log.
Next go to file -> settings -> Appearance&Behavior -> Menus and Toolbars. Roll up Main menu -> Tools. Choose Android. Click on 'Applay' button and 'OK'. Wait for a while (gradel progressbar on the bottom).
I hope that I solve your problem.
Technically, AFAIK, it's the existence of
apply plugin: 'com.android.application'
orapply plugin: 'com.android.library'
in the appropriatebuild.gradle
file, along with the requisite setup for that in the appropriatebuild.gradle
file. If you look at the Android project that you just created, you will see onebuild.gradle
file in the project root directory and another inapp/
. The top-levelbuild.gradle
file configures where to obtain plugins (via thebuildscript
closure, where "closure" is "things in{}
"). Theapply plugin: 'com.android.application'
statement in the module'sbuild.gradle
file says "this module creates an Android app", whileapply plugin: 'com.android.library'
says "this module creates an Android library". My assumption is that you are missing part or all of this.The simplest solution, IMHO, would be to create a new project, then drag-and-drop the Java code and other relevant bits from the somewhat-broken project into the new one. If you drag-and-drop between two Android Studio windows, it's fairly smart, and it also honors the standard Ctrl-for-copy-vs.-move pattern (at least on Windows/Linux). This way, you are starting with a properly-configured Android project and merely adding in the code and stuff that you want it to have.
Alternatively, you can look at the new project and try to retrofit your existing project (e.g., modifying the
build.gradle
file(s)). An experienced developer can do this with mild difficulty; it's not the sort of thing that I would recommend to newcomers to Android.Just follow the prompts in the android terminal window.
I was able to fix this by trying to build the gradle and when that failed, it prompted me with "install missing platforms and sync project". This fixed the issue. It took about 5 minutes to resolve the gradle dependencies.
Note: This was trying to run an ionic application from the raw ionic generated android code. It is not initially recognized as an android project or application until you do those steps.
Until that all finished, tools>Android>menu was not available.
Bump into this problem when installing Android Studio on a new machine. In my case the problem was that Intel Virtualization was not enable on BIOS.
Android Studio installed successfully but the menu option Tools->AVD Manager was not available. The problem was identified only when i try to reinstall manually Intel® Hardware Accelerated Execution Manager - Intel HAXM
The following steps were done, not all should be required for everyone:
Only after this steps the menu Tools->AVD Manager appear. The run option for module App also become available at this time. Before that run module was an empty box.
Note: My Android Studio Version was 3.2