使用Expo启动React Native项目时,会出现adb连接错误。需要连接Expo本地服务器和Android Studio模拟器。控制台错误信息大致如下:
To run the app, choose one of:
› Scan the QR code above with the Expo app (Android) or the Camera app (iOS).
› Press a for Android emulator, or w to run on web.
› Press e to send a link to your phone with email.
Press ? to show a list of all available commands.
Couldn't adb reverse: adb.exe: error: device offline
Couldn't start project on Android: Error running adb: adb.exe: device offline
Couldn't adb reverse: adb.exe: error: device offline
Couldn't start project on Android: Error running adb: adb.exe: device offline
有人能帮助我吗?