Common error handling for Android (iii)

Source: Internet
Author: User

1.java.net.socketexception:noroute to host

Workaround: Turn off Firewall/network problems, reconnect WiFi, or check the network port.

2.Failed to install xxx.apk in device ' xxxxxxxxx ': Unable to open sync connection!

java.io.IOException:Unable to open Sync connection!

Launch canceled!

Workaround: Generally because the device is not connected well, confirm that the phone opens the developer mode, and connect to the computer can be

3.res\values\style.xml:44:error:error Retrieving parent for item:no Resource found that matches the given name ' Android: Windowtitlebackground '

Workaround: Change "Android:windowtitlebackground" > to "*android:windowtitlebackground" >

4.Caused by:android.view.InflateException:Binary XML file line #244: Error inflating class XXXX

Workaround: I often encounter this problem when I customize a control or use a custom control, the root of the problem is that you do not correctly use custom controls/custom controls that require certain properties, and we do not assign a value to this property at initialization, which requires a return to source code analysis, no common solution

5.Failed to install *.apk on device ' emulator-5554 ': timeout

Workaround: This problem typically occurs because the virtual machine is not shut down properly, or if the virtual machine is already started, but it is not displayed. We can delete the corresponding virtual machine directory under the. lock file, or in WINDOW->PREFERENCES->ANDROID->DDMS->ADB connection time Out (MS), set the value of a larger

Common error handling for Android (iii)

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.