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

I fixed this issue by selecting

API 27+: Android API 27, P preview (Preview)

in the project structure settings. Following image shows my setting. The 13 errors that were coming while building the app, have disappeared.

My Gradle settings


set your compileSdkVersion 28 let android studio download platform files


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'