错误:(9,5)错误:未找到资源android:attr/dialogCornerRadius [英] Error:(9, 5) error: resource android:attr/dialogCornerRadius not found
问题描述
因此,我安装了android studio 3.0.1,并在打开构建的gradle并显示以下错误后立即进行了安装.我尝试添加依赖项,例如设计和支持,但徒劳无功.有人可以帮我吗? 先感谢您.
So I installed android studio 3.0.1 and as soon as it opened the gradle built and showed the following errors. I tried adding dependencies such as design and support but in vain. Could someone help me? Thank you in advance.
它表明未找到某些属性,例如dialogCornerRadius和fontVariation设置.
It shows that some attributes such as dialogCornerRadius and fontVariation Settings not found.
推荐答案
由于不匹配的compileSdkVersion
和
库版本.
This error occurs because of mismatched compileSdkVersion
and
library version.
例如:
compileSdkVersion 27
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
,同时避免在库中使用+符号,如下所示:
and also avoid to use + sign with library as in the following:
implementation 'com.android.support:appcompat-v7:26.+'
使用完全一样的库版本
implementation 'com.android.support:appcompat-v7:26.1.0'
在库中使用+符号会使构建过程难以收集所需的确切版本,从而使系统不稳定,因此不建议使用.
Using + sign with the library makes it difficult for the building process to gather the exact version that is required, making system unstable, hence should be discouraged.
这篇关于错误:(9,5)错误:未找到资源android:attr/dialogCornerRadius的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!