rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
288 stars 327 forks source link

Execution failed for task ':background_locator:compileDebugKotlin'. #240

Closed DomingoMG closed 3 years ago

DomingoMG commented 3 years ago

I am trying to compile the latest version and it is giving me this error.

Flutter version: 2.0.6

background_locator: ^1.6.0+1-beta

I've done: flutter clean but still the same.

e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.0+1-beta\android\src\main\kotlin\rekab\app\background_locator\provider\AndroidLocationProviderClient.kt: (10, 1): Class 'AndroidLocationProviderClient' is not abstract and does not implement abstract member public abstract fun onStatusChanged(p0: String!, p1: Int, p2: Bundle!): Unit defined in android.location.LocationListener

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':background_locator: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
mehdok commented 3 years ago

Hi @DomingoMG Thank you for opening an issue;

I believe the method onStatusChanged(p0: String!, p1: Int, p2: Bundle!) is deprecated and there shouldn't be any issue not overriding it. Please update to the latest version of Dart and Android SDK and let me know if your problem has been solved.