From 29th September 2021 , i got this error when i build my ionic capacitor app
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.appcompat:appcompat:1.4.0-beta01.
AAR metadata file: C:\Users\username\.gradle\caches\transforms-2\files-2.1\fc809b477a0dcde256a643199c214be5\appcompat-1.4.0-beta01\META-INF\com\android\build\gradle\aar-metadata.properties.
when i check i got this , there is ah beta vertion update on 29th sep 2021 on androidx.appcompat:appcompat:1.4.0-beta01 , it requires minCompileSdk 31 , i dont know how to decrease, can someone please help me to resolve this
Just add this line of code in the app build.gradle
file.
android {
defaultConfig {
configurations.all {
resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' }
}
}
}