First, the problem description
In the process of configuring the development environment in accordance with the React-native configuration tutorial on the WIN7 platform on the network, when the difficult step to react-native run-android, it is found that there has been an error, as follows:
The error description information indicates that the ubable to upload some APKs. After searching the net finally here (http://www.hacksparrow.com/react-native-android-unable-to-upload-some-apks.html) got a more comprehensive answer, I simply translated the original text and made a little supplement.
Second, the solution
1. If you use the actual device (Android phone) to debug the run, make sure your device is connected correctly and the developer mode is turned on. You can use the ADB devices command to see if the connection is healthy.
2. If you use the simulator to debug the run, make sure that your emulator is up and running properly. Also be aware that you have correctly installed the emulated image in the SDK. For more information see here (HTTP://STACKOVERFLOW.COM/QUESTIONS/32932874/COM-ANDROID-DDMLIB-INSTALLEXCEPTION-UNABLE-TO-UPLOAD-SOME-APKS).
3, the app's configuration uses the bug more version of the Gradle, such as version 1.3.1. We need to: found in the Android/build.gradle filecom.android.tools.build:gradle:1.3.1。把它改成这个com.android.tools.build:gradle:1.2.3。当然了,其他版本的gradle也许也行。
4, if the above three steps still does not solve the problem, you can try to use Android studio or other IDE to debug the run.
Iii. references
1, http://www.hacksparrow.com/react-native-android-unable-to-upload-some-apks.html
2, Http://stackoverflow.com/questions/32932874/com-android-ddmlib-installexception-unable-to-upload-some-apks
Win7 platform react-native android:unable to upload some APKs