React-native the problem with the mind 2:com.android.builder.testing.api.deviceexception

Source: Internet
Author: User
Tags stack trace

Error Details:

Execution failed for task ': App:installdebug '.
> com.android.builder.testing.api.DeviceException:Could not create ADB Bridge. ADB Location:d:\appdata\local\android\sdk\platform-tools\adb.exe

* Try:
Run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.

BUILD FAILED

Total time:10.89 secs
Could not install the app on the device and read the error above for details.

Environment: Windows7 Real machine Redmi Note 4x-6.0.1

Workaround:

You cannot create ADB Bridge to view the next device

Found Adbserver problem, Baidu for a long time, are not suitable for me, I am taking the real Machine debug mode, Rice note4x off MIUI optimization

Since 5037 port monitoring cannot be started, let's see who's listening to this port.

Start Task Manager--process, top menu-View--Select column--pid list show PID to find the corresponding 9600 application, found that is adb.exe no problem ah, why can not listen to it

Let's try it again, it's not a problem after restarting.

App finally registered successfully

React-native the problem with the mind 2:com.android.builder.testing.api.deviceexception

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.