Reputation: 41
I was trying to make some changes to my existing project this morning but I am unable to generate the build which was working till yesterday.
I am getting an error that says the following,
The minCompileSdk (30) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-29).
Dependency: androidx.core:core-ktx:1.7.0-alpha01.
I am still using the targetSDK as 29 and haven't configured it to be 30 yet and also, I am using Facebook SDK and Admob SDKs for various reasons. Anybody else facing this issue lately?
Upvotes: 2
Views: 1482
Reputation: 1085
I had this exact error too.
The solution that worked was to change in build.gradle (app) this line
implementation "androidx.core:core-ktx:+"
to this:
implementation "androidx.core:core-ktx:1.6.0"
And no changes to compileSdkVersion
or targetSdkVersion
were necessary
change both compileSdkVersion
and targetSdkVersion
to 30
Upvotes: 2