Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows: PANIC: Broken AVD system path. Check your Android_SDK_Root value [C:\Users\[User]\AppData\Local\Android\SDK]!

I have created an AVD on Windows 8.1 and trying to run it through command line but facing below issue.

Command: emulator -avd [AVD Path]

Error: PANIC: Broken AVD system path. Check your Android_SDK_Root value [C:\Users[User]\AppData\Local\Android\SDK]!

I have set the Android_SDK_ROOT value to SDK home directory. This works fine if i run emulator through android studio.

Can anyone help this?

Thanks,

Chandresh Parmar

like image 895
Chandresh Parmar Avatar asked Sep 21 '17 06:09

Chandresh Parmar


People also ask

Where is AVD installed?

-p path : Path to the location where the directory for this AVD's files will be created. If you do not specify a path, the AVD will be created in ~/. android/avd/ .

How do I open AVD?

Run your app on the emulator After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.

Where will you find the option for the AVD Manager?

You can find the AVD Manager & SDK Manager option under the Tools menu as shown below. In the older version of the Android studio you will find this menu under the Tools -> Android.


1 Answers

Open your android studio then focus on the toolbar.

Goto tools > SDK manager then

Appearance & Behavior > Systems Settings > Android SDK

Now in the tab copy the Android SDK Location from here Android SDK Location

then goto your environment variables and then set the path along with these variables

  1. ANDROID_HOME
  2. ANDROID_SDK_ROOT

Environment Variables

like image 189
Ahmer Shahid Avatar answered Sep 28 '22 04:09

Ahmer Shahid