注意:我實際上剛剛解決了這個問題,因此我在這裏發佈我的解決方案,因爲這是一個模糊的錯誤消息,需要一些時間來解決。希望我能幫助另一個人!如何使用Linux上的ReactNative中的gradle解決此錯誤?
> react-native run-android Starting JS server... 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
環顧四周網上,我看到類似的錯誤消息,但更詳細和以其他方式解決。我的解決方案非常簡單,它在下面的答案中!