Share icon

Hi everyone,

Today we see the common andorid studio error for java/kotlin and its solution.

Error:

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.core:core-ktx:1.7.0-alpha02. AAR metadata file: C:\Users\mohammad.zeeshan1.gradle\caches\transforms-2\files-2.1\a20beb0771f59a8ddbbb8d416ea06a9d\jetified-core-ktx-1.7.0-alpha02\META-INF\com\android\build\gradle\aar-metadata.properties.

You would see the above error while building the app and install to device, this error is because of dependency 

See Dependency: androidx.core:core-ktx:1.7.0-alpha02

To solve this we need to lower down the dependency according to our installing device sdk version, Just follow pictures below

1. Right click on "app" and select "Open module settings"

image

 

2. Click on Dependencies, and choose your dependency according to error in our case androidx.core:core-ktx:1.7.0-alpha02

Image

So just choose lower version and hit OK

Image

3. Now rebuild the app and see the error will fix.

If you have still issue post your error in comment section and we will try to fix them for you, just need to focus on the install device dependencies that required,

Hope you find this page useful, keep searching and keep learning

key2goal

Comments

Profile picture for user Anees
Ronak Kumawat (not verified)
Sun, 01/23/2022 - 12:47
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.1. AAR metadata file: C:\Users\DELL\.gradle\caches\transforms-3\7c35e9ced6058ee9ee419dce8130dd8e\transformed\appcompat-1.4.1\META-INF\com\android\build\gradle\aar-metadata.properties.
Profile picture for user Anees
chris (not verified)
Mon, 01/24/2022 - 18:16
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. AAR metadata file: C:\Users\ikuzo\.gradle\caches\transforms-2\files-2.1\f93afd0c2de5556c94c5f01f4cd8608f\appcompat-1.4.0\META-INF\com\android\build\gradle\aar-metadata.properties.
Profile picture for user Anees
elanasowell908873 (not verified)
Thu, 02/10/2022 - 04:21
wonderful issues altogether, you just received a emblem new reader. What could you suggest about your post that you just made a few days in the past? Any certain?
Profile picture for user Anees
coreymcmurtry52696 (not verified)
Thu, 02/10/2022 - 04:32
Excellent way of describing, and good paragraph to get information concerning my presentation focus, which i am going to convey in institution of higher education.
Profile picture for user Anees
hiltonscholz403421 (not verified)
Thu, 02/10/2022 - 04:38
Hi there would you mind letting me know which webhost you're using? I've loaded your blog in 3 different internet browsers and I must say this blog loads a lot faster then most. Can you suggest a good internet hosting provider at a reasonable price? Kudos, I appreciate it!

Add new comment

Restricted HTML