transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

Build Failed in Android #1364

Closed javico-dev11 closed 1 year ago

javico-dev11 commented 1 year ago

Your Environment

Expected Behavior

After the plugin installation, it should allow you to compile the app

Actual Behavior

Before installing the plugin, the app compiles correctly, after installing the plugin, when trying to compile, it generates an 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).

Steps to Reproduce

Context

I am trying to get the location of the device even if the app closes completely.

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ``` adb
christocracy commented 1 year ago

That's right. compileSdkVersion 31 is now required.

See the SampleApp to learn how to define a custom build-extras.gradle. Within that custom build-extras.gradle, add the following one line:

ext.cdvSdkVersion="31"
javico-dev11 commented 1 year ago

Oh I understand, thank you very much for the information, I will try with your recommendation.