tflite_flutter_helper icon indicating copy to clipboard operation
tflite_flutter_helper copied to clipboard

Error when trying to use the tflite_flutter_helper package

Open NishanthPrajith opened this issue 2 years ago • 12 comments

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.

  • What went wrong: Execution failed for task ':tflite_flutter_helper:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

NishanthPrajith avatar May 29 '22 18:05 NishanthPrajith

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.

SmiffyKMc avatar May 31 '22 20:05 SmiffyKMc

Same problem

MATTYGILO avatar Jun 14 '22 11:06 MATTYGILO

same problem : (

Yati2 avatar Jul 19 '22 06:07 Yati2

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.

Yati2 avatar Jul 19 '22 06:07 Yati2

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

vinceglb avatar Jul 21 '22 15:07 vinceglb

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 {

Mmisiek avatar Oct 18 '22 04:10 Mmisiek

override fun onRequestPermissionsResult

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

Mytrix123 avatar Mar 16 '23 13:03 Mytrix123

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

Mmisiek avatar Mar 16 '23 15:03 Mmisiek

signature

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

franciscocuesta avatar Mar 30 '23 02:03 franciscocuesta

@franciscocuesta You just add on pubspec.yaml :

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

Mytrix123 avatar Apr 01 '23 07:04 Mytrix123

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

error_capture

Shahid-Fakhri avatar Apr 11 '23 10:04 Shahid-Fakhri

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

image

Shahid-Fakhri avatar Apr 12 '23 05:04 Shahid-Fakhri