您的位置:首页 > 移动开发

No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'

2015-12-11 13:24 1126 查看
E:\androidSutio\News\app\build\intermediates\res\merged\debug\values\values.xml

Error:(9) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

E:\androidSutio\News\app\src\main\res\values\styles.xml

Error:(4, 5) No resource found that matches the given name: attr 'colorAccent'.

Error:(4, 5) No resource found that matches the given name: attr 'colorPrimary'.

Error:(4, 5) No resource found that matches the given name: attr 'colorPrimaryDark'.

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\android-sdk-windows\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1

是因为删掉了build.gradle文件中的V7依赖包,添加上appcompat-v7包就行了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android studio 调试