There are two ways to fix this error:
- Increase
compileSdk,targetSdkvalues from32to33inbuild.gradlefile (app level). - (Not recommended) Decrease dependencies in
build.gradleto old values:
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
After these changes – resync the project with Gradle files.
But it is best to use the first way, as it is necessary to support Android 13.