安卓错误总结

1.   资源id不存在。可是代码中明显存在,这时,project—>clean,就可解决。

2.  R文件没有了,clean一下。(前提是:全部xml文件里无错误;manifest文件无错误)。

 3. 例如以下图错误:



由于manifest.xml文件 配置出错,必须例如以下配置:



出错原因是  丢失或者<category > 配置错误。。


4.  The connection to adb is down, and a severe error has occured. You must restart。。



打开任务管理器(ctrl + alt + delete ),进程:关闭全部adb.exe 。

在doc下:输入命令:adb start-server,看启动服务是否成功。然后重新启动eclipse就可以。


5. 

检查一下文件夹,libs下有放jar包的文件夹,把那个删掉即可了。project要用的jar包所有放在libs根文件夹下。

6. out of memory on a 1163536-byte allocation.

  由于我的listview.xml和listview_item.xml文件。都有背景图。去掉当中一个,问题攻克了。


7. Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/nostra13/universalimageloader/cache/disc/DiskCache;

原因:libs目录下 有反复的jar包。例如以下图:

8. This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in

预览xml文件的时候,不显示控件。仅仅显示如上:

解决:选择一个较低的安卓版本号就好了。

例如以下图:



原文地址:https://www.cnblogs.com/yxwkf/p/5416418.html