Issue
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.
Solution
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
- Close all CMD and IDE programs.
- Open Android Studio and navigate to AVD Manager
- Click the down arrow for the target AVD and click the Edit option
- Set the device to Cold boot instead of Quick boot
- Open SDK Manager, and download the SDK Platform for android version used by AVD
- Go back to AVD Manager, click the Cold boot now option
- Open a CMD terminal as administrator, CD to project repo, and run expo start
- Launch expo in AVD
DONE
Answered By - dylanwhittaker
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.