Almoullim / background_location

Flutter background location plugin for Android and iOS
https://pub.dev/packages/background_location
Other
224 stars 236 forks source link

Build fails while using flutter build apk but works fine for building appbundle #110

Closed nandakumar5398 closed 1 year ago

nandakumar5398 commented 3 years ago

FAILURE: Build failed with an exception.

BUILD FAILED in 12s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 13.6s The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility. ✏️ Creating android/settings_aar.gradle... 5ms ✓ android/settings_aar.gradle created successfully. Building plugin background_location... Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 2,205ms

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

The plugin background_location could not be built due to the issue above.

sepehr13494 commented 3 years ago

same issue here

NickoftheSouth commented 3 years ago

I got this to build by bumping up the compileSdkVersion in the plugin to 30

That is changing line 28 in /android/build.gradle to:

compileSdkVersion 30

MoralCode commented 1 year ago

the current master branch uses a compileSdkVersion of 30. Closing as completed