当我尝试在手机上上传 react-native apk 时,出现错误:
:app
:installDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unable to upload some APKs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
最佳答案
首先,检查您的设备是否已插入:
adb devices
然后查看gradle版本。版本 1.3.1 是 well known导致这个问题。要修复它,请转到 android/build.gradle 并将版本更改为 1.2.3。
关于android - react-native run-android 错误 : Unable to upload some APKs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39135864/