Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to resolve ionic capacitor , The minCompileSdk (31) specified in a dependency's AAR metadata

Hi i am facing issue in minCompileSdk (31) specified in a dependency's AAR metadata in ionic capacitor ,when i try to build capacitor app in android studio i got this issue, can anyone please help.

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\6bf49fd8cef0098411b4a61e01232e22\appcompat-1.4.0-beta01\META-INF\com\android\build\gradle\aar-metadata.properties.
like image 356
prushoth07 Avatar asked Jan 23 '26 07:01

prushoth07


1 Answers

Add this into the build.gradle

configurations.all {
  resolutionStrategy {
    force 'androidx.appcompat:appcompat:1.3.1'
  }
}
like image 106
Yefferson Solarte Avatar answered Jan 25 '26 05:01

Yefferson Solarte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!