No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

后端 未结 9 1811
孤街浪徒
孤街浪徒 2020-11-30 05:42

Can anybody help why I am getting an error in the following?

Error:(7, 41) No resource found that matches the given name (at \'dialogCornerRadius\'

相关标签:
9条回答
  • 2020-11-30 06:27

    if in your app level gradle if you have used compileSdkVersion = 27 then it will not work. You have to use version 28.

    compileSdkVersion 28 buildToolsVersion '28.0.3'

    0 讨论(0)
  • 2020-11-30 06:35

    Got the same error after unsuccessful migration to AndroidX. I reverted all changes which Android Studio made, cleaned project, invalidated cache/restart, and many other things but with no luck. Finally I found that Android Studio added two lines to gradle.properties:

    android.useAndroidX=true
    android.enableJetifier=true
    

    After remove those lines everything back to normal.

    0 讨论(0)
  • 2020-11-30 06:37

    Change the following depedencies in your gradle:


    compile 'com.android.support:design:+'
    

    to:

    compile 'com.android.support:design:26.1.0'
    

    'com.android.support:appcompat-v7:26.+'
    

    to:

    'com.android.support:appcompat-v7:26.1.0'
    

    Please note that you can specify any version, but make sure they both have the same version.

    This will make sure that values-28.xml file is not created.

    0 讨论(0)
提交回复
热议问题