1

I switched from using USB to using Wifi for ADB, but when I successfully build I get the following error: Error: more than one device/emulator.

I think this also causes the react native asset build to fail. I checked all of the devices connected using adb devices and I only see one:

enter image description here

What I tried to do is adb kill-server and start-server, run this command react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res, but nothing has worked so far.

Another note, I followed this SO answer to connect ADB with wifi:

How can I use adb over WiFi?

Is there a way to fix this error?

Laney Williams
  • 573
  • 3
  • 13
  • 34

0 Answers0