am15h / tflite_flutter_helper

TensorFlow Lite Flutter Helper Library
https://pub.dev/packages/tflite_flutter_helper
Apache License 2.0
159 stars 285 forks source link

Error when trying to use the tflite_flutter_helper package #59

Open NishanthPrajith opened 2 years ago

NishanthPrajith commented 2 years ago

e: C:\src\flutter.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:\src\flutter.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

FAILURE: Build failed with an exception.

SmiffyKMc commented 2 years ago

Read this in another comment and it worked for me:

tflite_flutter_helper:
    git:
      url: https://github.com/filofan1/tflite_flutter_helper.git
      ref: 783f15e5a87126159147d8ea30b98eea9207ac70

It's not great as I don't see the lib owners updating the library anytime soon so might help get you past your blocker.

MATTYGILO commented 2 years ago

Same problem

Yati2 commented 2 years ago

same problem : (

Yati2 commented 2 years ago

I have this error after I use the git url, Please HELP T...T Because every version of tflite_flutter_helper from git depends on camera ^0.8.1+3 and demo depends on camera ^0.9.4+5, tflite_flutter_helper from git is forbidden. So, because demo depends on tflite_flutter_helper from git, version solving failed.

vinceglb commented 2 years ago

@Yati2 You can see here a workaround : https://github.com/am15h/tflite_flutter_helper/issues/57#issuecomment-1133103451

Mmisiek commented 1 year ago

So this did not work for me, I downloaded repository and changed signature of function to:


    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>,
                                            grantResults: IntArray): Boolean {
Mytrix123 commented 1 year ago

override fun onRequestPermissionsResult

@Mmisiek I also having this error. What changes did you make ?

Mmisiek commented 1 year ago

override fun onRequestPermissionsResult

@Mmisiek I also have this error. What changes did you make ?

Basically downloaded the package from git, changed the function signature, and directed pubspec.yaml to the local copy

franciscocuesta commented 1 year ago

signature

I'm feeling so dummy... Is there any video, I would like to solve this problem... in my project... :(

Mytrix123 commented 1 year ago

@franciscocuesta You just add on pubspec.yaml :

tflite_flutter_helper: git: url: https://github.com/filofan1/tflite_flutter_helper.git ref: 783f15e5a87126159147d8ea30b98eea9207ac70

Shahid-Fakhri commented 1 year ago

Kindly help. The above comments did not work for me.

error_capture

Shahid-Fakhri commented 1 year ago

After downloading the package from git, and directing pubspec.yaml to the local copy, pubspec run successfully but again got this error

image