Error:(9, 5) error: resource android:attr/dialogCornerRadius not found

后端 未结 16 2039
攒了一身酷
攒了一身酷 2020-12-02 12:28

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

16条回答
  •  清歌不尽
    2020-12-02 13:07

    This error occurs because of mismatched compileSdkVersion and library version.

    for example:

    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.+'
    

    use exact library version like this

    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.

提交回复
热议问题