首页 > 电脑

eclipse新建工程出现错误

更新时间2018-05-14 04:12:43

C:UsersMutexeclipse-workspaceADS esvalues-v14styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

C:UsersMutexeclipse-workspaceADS esvalues-v11styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

eclipse新建工程出现错误

1、创建这个工程,所选的jar是否需要指定,比方说要在2.2版本上使用actionbar和fragment,在项目中后就要导入v4和v7这两个库,如果需要。那就导入V7包,路径是sdkextrasandroidsupportv7appcompat

 

2、点击ok后上面v7报错就解决了,现在来解决R文件无法生成的原因大多况都是xml文件报错。找到如下:

 

3、查看 res/values/styles.xml 下的报错点。

<style name="AppBaseTheme" parent="Theme.AppCompat.Light">把这个改成<style name="AppBaseTheme" parent="andr

 

oid:Theme.Light">

v11和v14相同改法,也可以直接删掉不用。改好后就没错了。

 

4、运行试试。


上一篇:请问这个视频的背景乐是哪个国家的语言

下一篇:webuploader怎么使用默认优先使用flash,没有flash了就用html5