metaflowltd / flutter_health_fit

A flutter plugin for using Apple HealthKit and Google Fit.
Other
88 stars 33 forks source link

Android fails to build after upgrade to Flutter 3.0.0 #71

Open matthiasn opened 2 years ago

matthiasn commented 2 years ago

I'm running into issues after the upgrade where I can't build for Android any longer:

> Task :flutter_health_fit:compileDebugKotlin FAILED
e: /usr/local/Caskroom/flutter/1.22.5/flutter/.pub-cache/git/flutter_health_fit-30102b653cdd2af64509edb4643e809e40139e7c/android/src/main/kotlin/com/metaflow/flutterhealthfit/FlutterHealthFitPlugin.kt: (42, 1): Class 'FlutterHealthFitPlugin' 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: /usr/local/Caskroom/flutter/1.22.5/flutter/.pub-cache/git/flutter_health_fit-30102b653cdd2af64509edb4643e809e40139e7c/android/src/main/kotlin/com/metaflow/flutterhealthfit/FlutterHealthFitPlugin.kt: (1068, 5): 'onRequestPermissionsResult' overrides nothing

Also see https://github.com/matthiasn/lotti/issues/972. Thanks for the plugin!