This is a knowledge sharing question.
I have a react-native project with compileSdkVersion
and targetSdkVersion
set to 30
.
After upgrading expo version and related packages android app was not getting built.
The following error was appearing in logs:
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.sqlite:sqlite-framework:2.2.0.
AAR metadata file: /home/<MY USERNAME>/.gradle/caches/transforms-2/files-2.1/f7bf6c20b6aaa8d6365a0aa8e2ddf180/sqlite-framework-2.2.0/META-INF/com/android/build/gradle/aar-metadata.properties.
Spent lot of time trying to figure out what's the problem