2016-08-25 34 views
1

当我试图上传反应本地APK我的手机上,我得到一个错误:反应原生运行Android的错误:无法上传一些的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 
+0

你是否按照[在设备上运行](https://facebook.github.io/react-native/docs/running-on-device-android.html)doc?你写udev规则很重要。 – Mihir

回答

1

首先,检查你的设备是插入:

adb devices 

然后检查gradle版本。版本1.3.1well known导致此问题。要修复它,请转至android/build.gradle并将版本更改为1.2.3

+0

谷歌很多答案,这一个应该是现在的正确答案。 –

0

我有这个错误,因为我使用节点v5.0。 切换到节点v6.6为我解决了它。

相关问题