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