No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')
Solution 1:
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.
Solution 2:
set your compileSdkVersion 28 let android studio download platform files
Solution 3:
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'