Home Email My Account ☎ 480-624-2500

An issue was found when checking AAR metadata

January 17, 2024

Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that

      depend on it to compile against version 34 or later of the

      Android APIs.

      :app is currently compiled against android-33.

      Also, the maximum recommended compile SDK version for Android Gradle

      plugin 8.0.2 is 33.

      Recommended action: Update this project's version of the Android Gradle

      plugin to one that supports 34, then update this project to use

      compileSdk of at least 34.

      Note that updating a library or application's compileSdk (which

      allows newer APIs to be used) can be done separately from updating

      targetSdk (which opts the app in to new runtime behavior) and

      minSdk (which determines which devices the app can be installed

      on).

 

Received the above message while compiling a new Android application. 

Fix:

1. Go to Android app dependencies by clicking on Gradle Scripts > build.gradle

2. Change implementation 'com.google.android.material:material:1.11.0' to implementation 'com.google.android.material:material:1.8.0'