background_location icon indicating copy to clipboard operation
background_location copied to clipboard

New override error appeared somehow

Open PaulMinguet opened this issue 2 years ago • 4 comments

Hi, I've been using your library for some time and today, it wouldn't compile anymore. Every time I build my app, I get this error :

`e: flutter.pub-cache\hosted\pub.dartlang.org\background_location-0.8.1\android\src\main\kotlin\com\almoullim\background_location\BackgroundLocationService.kt: (23, 1): Class 'BackgroundLocationService' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener e: flutter.pub-cache\hosted\pub.dartlang.org\background_location-0.8.1\android\src\main\kotlin\com\almoullim\background_location\BackgroundLocationService.kt: (221, 5): 'onRequestPermissionsResult' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':background_location:compileDebugKotlin'.

Compilation error. See log for more details

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 12s ` And I don't know if it comes from my code (because I didn't touch it for like a week and the library worked before that) or from the library.

Thanks

PaulMinguet avatar Apr 06 '22 14:04 PaulMinguet

i have the same problem

caiobraga avatar Apr 21 '22 20:04 caiobraga

Me too

nicklbaert avatar May 03 '22 07:05 nicklbaert

Same here

Medformatik avatar May 13 '22 11:05 Medformatik

It looks like pub.dev contains old version not one which is in git. I've fixed this using:

dependency_overrides:
  background_location:
    git:
      url: https://github.com/Almoullim/background_location.git
      ref: master

bambinoua avatar Oct 17 '22 10:10 bambinoua