close

[Solved] requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32

While I am trying to run my kotlin project I am facing the following error. Dependency ‘androidx.core:core-ktx:1.9.0’ requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. So in this article we are going to fix this error with all possible solutions.

How requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32 error occurs?

While trying to run kotlin project I am facing the below error.

requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32
Recommended action: Update this project to use a newer compileSdkVersion of at least 33, for example 33. Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion

How to solve requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32?

  1. How to solve requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32?

    To solve requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32 you need to update targetSdk value from 32 to 33. Just make sure your compileSdk and targetSdk both value must be 33. and then resync your gradle file. And then your error will be solved.

  2. requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32

    As Error is mentioned itself that To solve requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32 you need to update the compile SDK version to 33. Just open your app-level build.gradle file and change compileSdk values from 32 to 33 and then resync the project with Gradle files will resolve this error.

Solution 1: Update the compile SDK

As Error is mentioned itself that To solve requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32 you need to update the compile SDK version to 33.

Just open your app-level build.gradle file and change compileSdk values from 32 to 33 and then resync the project with Gradle files will resolve this error.

Solution 2: Update compileSdk and targetSdk

If solution 1 is Not worked then you need to update targetSdk value from 32 to 33. Just make sure your compileSdk and targetSdk both value must be 33. and then resync your gradle file. And then your error will be solved.

Solution 3: Downgrade dependencies version

First of all open your build.gradle file and just change androidx.core and androidx.appcompat dependencies version. Just like below.

implementation 'androidx.core:core-ktx:1.8.0' 
implementation 'androidx.appcompat:appcompat:1.5.0'

And then resync the project with Gradle files. and now you can run your project without any error.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below on which solution worked for you.

Also, Read

Leave a Comment