If you are experiencing issues with "unauthorized" emulators: I created a device without the play store services, which connected instantly! I've tried wiping the ADB from platform-tools 28.0.2 can now be safely used with the emulator. Try to look at "x86 Images" tab or "Other Images" tab)Īndroid Emulator Unauthorized, List of devices attached emulator-5554 unauthorized transport_id:1.
So I have to type export ANDROID_HOME=/Users/John/Library/Android/sdk again, then running the react-native run-android command works and deploys to my phone. And when I run the react-native run-android command, the compiler complains that ANDROID_HOME is not defined. But if I add the echo $ANDROID_HOME line to my android/gradlew file, it echoes nothing. I was able to deploy the app to my android phone by adding these extra stepsįor some reason, when I type echo $ANDROID_HOME from terminal, I get the result /Users/John/Library/Android/sdk. So maybe there is something wrong with my react-native set up instead? When I run adb devices, I see this result List of devices attachedīut when I run react-native run-android, I get the same error as above. I just connected my android phone to my Mac. But still the same issues mentioned above. I shut down my android studio and emulator, restarted it. In developer options I enabled USB debugging, disabled Verify apps over USB, and left everything else as default. I go into the settings of my android emulator, I go to Settings Build Number to tap it several times to enable Developer options. I type adb devices and I see List of devices attached
Set up your Android development environment: Make sure you have an Android emulator running or a device connected and have
gradlew installDebug).Ĭould not install the app on the device, read the error above for details. Scanning 616 folders for symlinks in /Users/John/Documents/myreactnativeproject/node_modules (17ms)īuilding and installing the app on the device (cd android &. On my Mac, I go to terminal and type react-native run-android and I get the error message: $ react-native run-android
I'm trying to get my react-native project to run on an android emulator while on a Mac operating system. this adb server's adb_vendor_keys is not set adb unauthorized miracle box com android ddmlib adbcommandrejectedexception device unauthorized
> .api.deviceexception: no online devices found. Adb devices unauthorized adb device unauthorized bypass skipping device 'emulator-5554' (emulator-5554): device is offline.