我已經安裝react-native並且已經能夠使用android-studio部署我的應用程序。但是,當我嘗試使用react-native run-android
它給了我下面的錯誤部署:無法在Genymotion仿真器上測試應用程序
Starting JS server...
Running /home/leo/Android/Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && ./gradlew installDebug...
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
我已經使用Android SDK管理器安裝成功android-sdk-tools v25.1.7
,android-sdk-platform-tools v24.0.2
和android-sdk-build-tools v23.0.1
。
我可以用Genymotion部署仿真器,它使用adb devices
我可以看到,它提供了以下的輸出:
List of devices attached
192.168.56.101:5555 device
我還能做什麼用react-native run-android
在我的Android模擬器部署?
謝謝,它對我有用:)) – nguyencse