Android studio appcompat-v7 更新23.0.x版本后出现问题

来源:互联网 发布:短信群发软件下载 编辑:程序博客网 时间:2024/06/06 07:00

最近在更新了AS之后,创建工程就出现来问题!错误代码提示如下:

/Users/Yuseng/Documents/AndroidStudioWorkSpace/MyApplication1/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xmlError:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.Error:Execution failed for task ':app:processDebugResources'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Yuseng/Library/Android/sdk2/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

解决方法如下,以供参考:

build.gradle文件中,将

dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    compile 'com.android.support:appcompat-v7:23.0.1'}

修改为:

dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    compile 'com.android.support:appcompat-v7:22.2.1'}
然后clean和Rebuild一下就OK!

原因大致是更新了V7包之后,一些apec.http package的引用缺失了。



1 0