react-native-admob / admob

Admob for React Native with powerful hooks and components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android SDK 31 required?

scottc5 opened this issue · comments

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.work:work-runtime:2.7.0.
AAR metadata file: C:\Users\corne.gradle\caches\transforms-2\files-2.1\7697b9cb5e1a55cf53fc61fd3c9a78ba\work-runtime-2.7.0\META-INF\com\android\build\gradle\aar-metadata.properties

Is there a reason androidx.work:work-runtime:2.7.0 needs to be used? Just wondering because it requires the app to move to 31 instead of 30.

androidx.work:work-runtime:2.7.0 is included in Google Mobile Ads SDK from the version 20.5.0 it requires minCompileSdk should be 31. If you are not targeting 31, force androidx.work:work-runtime version to 2.6.0: Link

Thanks for the clarification as well as the work around option.