当前位置: 移动技术网 > IT编程>开发语言>Java > Eclipse最新版使用过程中遇到的问题总结

Eclipse最新版使用过程中遇到的问题总结

2019年07月22日  | 移动技术网IT编程  | 我要评论

达里娅·克里什娜,ige,多功能食品料理机

1、sdk下载很慢。

配置sdk代理,速度像飞一样。建议先把20-24下完,不然后面遇到很多问题。

2、support-v7的问题

例如res\values\styles.xml:4: error: error retrieving parent for item: no resource found that matches the given name 'theme.appcompat.light.darkactionbar'.

下载相关的工具包,其实一开始sdk没有额,很多博客说有,害我找了半天。

右键你的项目,在下方有个android tools,点击add support lib。。。,然后按提示下载。

其余的就是像别的博客说得导入v7工程还有jar包

3、v21相关问题

例如

appcompat\res\values-v21\styles_base.xml:75: error: error retrieving parent for item: no resource found that matches the given name 'android:widget.material.actionbutton'.

要在v7项目里面改,在v7项目下的project.properties的target版本改得高一点

4、找不到图标

例如error: error: no resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').

因为自动生成的mainfest文件自带的图标是在drawable下的,但是仔细观察那个文件夹下没有图片资源,而是在mipmap下的

把图标路径改了即可。

5、应该在r里面生成的东西没有了

例如activity_main cannot be resolved or is not a field

删掉import android.r;

6、无法预览布局

例如:this version of the rendering library is more recent than your version of adt plug-in. please update adt plug-in

adt版本低,sdk版本高,把sdk版本调低点即可

以上所述是小编给大家介绍的eclipse最新版使用过程中遇到的问题总结,希望对大家有所帮助

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网