2016-08-25 69 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爲我解決了它。