源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2022-01-18 05:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Eclipse最新版使用过程中遇到的问题总结
[b]1、SDK下载很慢。[/b] 配置SDK代理,速度像飞一样。建议先把20-24下完,不然后面遇到很多问题。 [img]http://files.jb51.net/file_images/article/201609/201609300850481.png[/img] [b]2、support-v7的问题[/b] 例如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包 [b]3、v21相关问题[/b] 例如 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版本改得高一点 [img]http://files.jb51.net/file_images/article/201609/201609300850484.png[/img] [b]4、找不到图标[/b] 例如error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher'). 因为自动生成的mainfest文件自带的图标是在drawable下的,但是仔细观察那个文件夹下没有图片资源,而是在mipmap下的 把图标路径改了即可。 [b][img]http://files.jb51.net/file_images/article/201609/201609300850495.png[/img] [/b] 5、应该在R里面生成的东西没有了 例如activity_main cannot be resolved or is not a field [img]http://files.jb51.net/file_images/article/201609/201609300850496.png[/img] 删掉import android.R; [b]6、无法预览布局[/b] 例如:This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in ADT版本低,SDK版本高,把SDK版本调低点即可 [img]http://files.jb51.net/file_images/article/201609/201609300850497.jpg[/img] 以上所述是小编给大家介绍的Eclipse最新版使用过程中遇到的问题总结,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对编程素材网网站的支持!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部