Win7 platform react-native android:unable to upload some APKs

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.