2

I just installed Android Studio, created and ran a virtual device and have run expo, which successfully established the web server.

However, when I click on 'Run on Android Device/emulator' in the browser, I simply get en error message which says 'Error opening simulator. Check metro logs for details'. There is no logged output on the screen or in the console. enter image description here

After a few seconds, I get the following message from Android Studio: enter image description here

If I try to launch Android in the console by pressing 'a', I get the following error: enter image description here

EDIT: I found there were 2 adb processes running in the task manager. I killed both and restarted expo, which now shows a different error: enter image description here

Any idea on how I can resolve this please?

Thanks

Jat90
  • 493
  • 1
  • 10
  • 22

2 Answers2

0

So I found the solution myself.

  1. I completely removed Android Studio (see here for windows: How to completely uninstall Android Studio from windows(v10)?)
  2. Reinstalled Android Studio
  3. Started the Android Device Emulator
  4. Ran expo start
  5. Entered 'Tunnel Mode' via the browser (see screenshot below)
  6. Clicked 'Run on Android Device'

and bingo it worked. If you have trouble, be sure you kill all adb processes before you start the process and try again.

enter image description here

Jat90
  • 493
  • 1
  • 10
  • 22
0

I found a working solution on my system.

1- I deleted all of the emulators from android studio-

enter image description here

2- Then Tools --> SDK manager --> Android SDK and check the box in front of 'show package detail' and Uncheck the box for Google APIs Intel x86...

enter image description here

Then open your system's sdk path (Android SDK Location), (for example, my path is C:\Users\userName\AppData\Local\Android\Sdk) open the folder and delete the folders inside the system image folder.

3- Now in android studio again, Tools --> SDK manager --> Android SDK, and check the box in front of 'show package detail'. Look for Google APIs Intel x86...(check the box) under Android 12 (S), click apply to install again.

4- Tools--> Device manager --> create Device. Set up a new emulator device

connect it with Metro Bundler.

Cheers, it worked for me without uninstalling the entire android studio.

Gopal Krishna
  • 55
  • 1
  • 2
  • 9