You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Class 'TfliteFlutterHelperPlugin' 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.RequestPermissionsResultListene
Class 'TfliteFlutterHelperPlugin' 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.RequestPermissionsResultListene
datdefboi
opened this issue
May 6, 2022
· 8 comments
Facing following issue
e: C:\Users\datde\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: (43, 1): Class 'TfliteFlutterHelperPlugin' 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: C:\Users\datde\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: (143, 2): 'onRequestPermissionsResult' overrides nothing
camera: ^0.9.4+21
tflite_flutter: ^0.9.0
tflite_flutter_helper: 0.3.1
sdk: ">=2.12.0 <3.0.0"
Temporary workaround:
change
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array?, grantResults: IntArray?): Boolean
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean
in the tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: file
Lyokone/flutterlocation#718 (comment)
tafaust, zbejas, datdefboi, naga-k, uayodev, sreejagath, augustinharter, jccy2106, fkpage, mrodriguezalas, and 7 more reacted with thumbs up emoji
zighem25 and prochild reacted with hooray emoji
zighem25 and mohammad-alnimer1 reacted with heart emoji
zighem25 reacted with rocket emoji
All reactions
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean
Can approve this works. Thank you.
Temporary workaround:
change override fun onRequestPermissionsResult(requestCode: Int, permissions: Array?, grantResults: IntArray?): Boolean to override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean in the tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: file
Lyokone/flutterlocation#718 (comment)
Thanks for the solution. I had to add
Array<out String>
because of :
One type argument expected for class Array<T>
So the final solution for me was this:
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean {
Error while adding the package. Execution failed for task ':sound_stream:compileDebugKotlin'.
CasperPas/flutter-sound-stream#47
Temporary workaround:
change override fun onRequestPermissionsResult(requestCode: Int, permissions: Array?, grantResults: IntArray?): Boolean to override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean in the tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tflite_flutter_helper\TfliteFlutterHelperPlugin.kt: file
Lyokone/flutterlocation#718 (comment)
Thanks for the solution. I had to add
Array<out String>
because of :
One type argument expected for class Array<T>
So the final solution for me was this:
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray): Boolean {
did you mean become
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray): Boolean {
?