1.java.net.SocketException: Noroute to host

解决办法:关闭防火墙/网络有问题,重新连接 WIFI 或者检查网络端口。

2.Failed to install xxx.apk on device ‘xxxxxxxxx’: Unable to open sync connection!

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

Launch canceled!

解决办法:一般是因为设备没连接好,确认手机打开了开发者模式,并且连接上电脑就可以

3.res\values\style.xml:44:error: Error retrieving parent for item: No resource found that matches the given name ‘android:WindowTitleBackground’

解决办法:把”android:WindowTitleBackground”>改为”*android:WindowTitleBackground”>

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

解决办法:我在自定义控件或使用自定义控件时常常遇见这个问题,问题的根源在于没有正确地使用自定义控件/自定义控件需要某些必须的属性,而我们在初始化时没有为这个属性赋值,报这个错时需要回到源码分析,没有通用的解决办法

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

解决办法:出现这个问题一般是因为没有正确地关闭虚拟机,或者是虚拟机已经启动,却没有显示。我们可以删除对应的虚拟机目录下.lock文件,也可以在window->preferences->Android->DDMS->ADB connection time out (ms),把值设置的大一些

更多相关文章

  1. android在java中动态改变控件大小
  2. Android(安卓)自定义时钟控件
  3. 【Android】以BaseAdapter做适配器的ListView及其性能优化
  4. Android(安卓)在Activity中获取控件尺寸的方法
  5. Android使用Fragment嵌套Fragment的模式实现界面滑动
  6. Android(安卓)Studio学习:中级控件:使用Intent进行页面之间数据传
  7. Android在onCreate()中获得控件尺寸
  8. Android(安卓)ViewGroup系列控件的使用
  9. Android错误总结

随机推荐

  1. 【Android】Android自定义属性,attr forma
  2. Android 8.1 (O) Launcher3 方面修改
  3. Android临时数据缓存方法
  4. android中的内部类
  5. 基于Android Q 修改默认音量等级
  6. android真实项目教程(四)——MY APP MY STY
  7. Android(安卓)Studio编译出来的APK无法安
  8. Android(安卓)Manifest之元素中文注释
  9. Android SDK 26以后ant编译错误解决办法(
  10. android自定义dialog