Almoullim / background_location

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

Class 'BackgroundLocationService' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult #161

Closed zohaibmushwani closed 2 years ago

zohaibmushwani commented 2 years ago
e: E:\flutter_3_0\.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: E:\flutter_3_0\.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
captain-gallick commented 2 years ago

facing the same issue.

santhoshrao519 commented 2 years ago

any one found solution, please help

Vincent500 commented 2 years ago

same issue

captain-gallick commented 2 years ago

I kind of fixed the issue by downgrading my flutter sdk to below 3.0.0 . I know it's not a proper fix but atleast my app is working and it's all that matters.

Vincent500 commented 2 years ago

i switched location plugin i think this one is better

farhadprz commented 2 years ago

same issue

haukepribnow commented 2 years ago

151 fixes this.

hugihorseday commented 2 years ago

in file BackgroundLocationService.kt the onRequestPermissionResult has wrong types and thus is not implemented correctly.

marcobraghim commented 2 years ago

Same here

sumanwebidigital commented 2 years ago

Same Here

Almoullim commented 2 years ago

fixed in https://github.com/Almoullim/background_location/pull/151