Open NishanthPrajith opened 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.
Same problem
same problem : (
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 You can see here a workaround : https://github.com/am15h/tflite_flutter_helper/issues/57#issuecomment-1133103451
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 {
override fun onRequestPermissionsResult
@Mmisiek I also having this error. What changes did you make ?
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
signature
I'm feeling so dummy... Is there any video, I would like to solve this problem... in my project... :(
@franciscocuesta You just add on pubspec.yaml :
tflite_flutter_helper: git: url: https://github.com/filofan1/tflite_flutter_helper.git ref: 783f15e5a87126159147d8ea30b98eea9207ac70
Kindly help. The above comments did not work for me.
After downloading the package from git, and directing pubspec.yaml to the local copy, pubspec run successfully but again got this error
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'.
Try:
Get more help at https://help.gradle.org