Open datdefboi opened 2 years ago
@datdefboi Can you share the code that causes the issue?
Hello Sir, did you solve this? @datdefboi
I have the same problem since yesterday, that I updated to Flutter 3.0
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 https://github.com/Lyokone/flutterlocation/issues/718#issuecomment-1125130393
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 {
My final solution also was override fun onRequestPermissionsResult(requestCode: Int, permissions: Array
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 {
?
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"