I am using react-native-expo for mobile app development.
I use an android emulator for the app, vscode editor for development.
It started showing me this error from few days.
› Opening on Android...
Couldn't adb reverse: device 'adb' not found
› Opening exp://10.0.46.81:19000 on Device adb
Couldn't start project on Android: Error running adb: device 'adb' not found
› Press ? │ show all commands
I tried wiping the emulator, tapping on the build number in the emulator, but nothing worked out.
I’ve deleted the virtual devices and created new one. It worked for one time and again this process isn’t working.
there isn’t much about this on the internet.
need help.
6
Answers
The fix for me was to install the SDK Platform for the android version used by the AVD.
In my case, I installed android v9 (Pie) via the AVD Manager when setting up my AVD for the first time, and when I looked into this issue I noticed that the SDK Platform for v9 was not installed as part of that setup.
The exact steps I took are as follows:
Disclaimer: You might not need to follow these steps exactly to resolve the issue
DONE
Just try this. It is work for me.
(Common path is C:Users(name)AppDataLocalAndroidSdk)
(ANDROID_HOME C:Users(name)AppDataLocalAndroidSdk)
(C:Users(name)AppDataLocalAndroidSdkplatform-tools)
It is work for me after I have solved it for 3 hours.
At first, I don’t face the problem like this in flutter but in react-native.
I had the same problem. Emulator started working after this:
When I was solving this problem I also ended up doing these:
Go to Virtual Device Manager -> Select your Device -> Actions -> Click "Drop down" button and select "Cold Boot Now".
This worked for me.
By my side the problem was is In
Internet Connection
. I just changed the WiFi and everything working fine.For my case, I went to the avd and simply clicked "wipe data", restarted both my avd and server and it worked