Cannot run emulator in Android Studio

后端 未结 12 1882
灰色年华
灰色年华 2020-12-07 19:42

I just got done installing Android studio and trying to take it for a test run. When I try to run my app I get the following error message

emulator: ERROR:          


        
12条回答
  •  没有蜡笔的小新
    2020-12-07 20:23

    I had the same error. The solution for me was change the ANDROID_HOME path. First I took a look into tools->android->sdk manager from Android Studio. In that window, we can see the path where Android Studio looks for the SDK: image

    Then I opened a Windows CMD shell, executed:

    echo %ANDROID_HOME%
    

    but the path was different to the one in ANDROID STUDIO CONFIGURATION of the first step.

    The solution was to change in user environment, the ANDROID_HOME, to the one of the first step: image

    I finally closed the cmd shell, and opened another cmd shell to execute:

    echo %ANDROID_HOME%
    

    the path was updated, and I could run my emulator perfectly.

提交回复
热议问题