Android Studio : emulator is already running

前端 未结 27 2228
再見小時候
再見小時候 2021-02-01 12:28

I am trying to run emulator on my android studio 8.14. When I click run it says it is already running. Any help would be appreciated.

相关标签:
27条回答
  • 2021-02-01 13:01

    EASIEST SOLUTION:

    1. Go to AVD Manager
    2. Click on down arrow in the Actions column on the right
    3. Click on Wipe data

    You're done :)

    0 讨论(0)
  • 2021-02-01 13:02

    Or you can type a command in terminal as

    1.killall Finder and then type,

    2.defaults write com.apple.Finder AppleShowAllFiles true it shows hidden .android folder

    Open .android folder and delete .android/avd/Nexus_5X_API_26.avd/*.lock file and now you run emulator it works fine.

    0 讨论(0)
  • 2021-02-01 13:02

    You can also solve this problem by doing "Invalidate chaches/ restart".

    0 讨论(0)
  • 2021-02-01 13:03

    For me, "delete .lock file" & "stop emulator then start" & "delete emulator then recreate" does't work.

    but,delete "C/User/yourName/.android" folder can fix this problem

    0 讨论(0)
  • 2021-02-01 13:03

    In your Android Studio go to Tools->Android->AVD Manager. It will list your virtual devices. Click the Action column corresponding to your virtual device. It will list many actions. Click on Stop. This will shutdown your android studio. Now start android studio. Your virtual device should work fine.

    0 讨论(0)
  • 2021-02-01 13:03

    Find and open the pid folder within your *.lock folder. Inside should be a number.

    Kill pid:

    Windows

    taskkill /F /PID pid_number
    
    0 讨论(0)
提交回复
热议问题