flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

A problem occurred evaluating project ':tflite'.

Open chh0871 opened this issue 2 years ago • 9 comments

A problem occurred evaluating project ':tflite'.

No signature of method: build_ep7m3kyu49yly4t2xg6i0r7qu.android() is applicable for argument types: (build_ep7m3kyu49yly4t2xg6i0r7qu$_run_closure2) values: [build_ep7m3kyu49yly4t2xg6i0r7qu$_run_closure2@1c7f614f]

chh0871 avatar Jun 01 '22 07:06 chh0871

Having same issue.

ndesamuelmbah avatar Jun 01 '22 17:06 ndesamuelmbah

@chh0871 I was able to solve this by updating the build.gradle file of the package and changing the lines.

dependencies {
        compile 'org.tensorflow:tensorflow-lite:+'
        compile 'org.tensorflow:tensorflow-lite-gpu:+'
}

to

implementation 'org.tensorflow:tensorflow-lite:+'
implementation 'org.tensorflow:tensorflow-lite-gpu:+'

I got the hint by looking at the error stack trace and seeing that the complaint arose from the packages' build.gradle file. After this fix, I still had to change Compile SDK version of my app.

ndesamuelmbah avatar Jun 03 '22 04:06 ndesamuelmbah

It's still not working for me even after adding the implementation part

debongX avatar Nov 10 '22 14:11 debongX

Not working for me also

nehaanil79 avatar Jan 08 '23 15:01 nehaanil79

It worked

nehaanil79 avatar Jan 13 '23 18:01 nehaanil79

Can you tell me how?

debongX avatar Jan 15 '23 15:01 debongX

Can you tell me how?

goto dart external libraries> flutter plugins > tflite-1.1.2> android> build.gradle

do the changes mentioned in above answers here.

moazbinyounus avatar Jan 24 '23 10:01 moazbinyounus

I haven't fixed it yet

zenkriztao avatar Feb 09 '23 12:02 zenkriztao

didn't work, is there any other solution?

zayed-shamshad avatar Apr 10 '23 14:04 zayed-shamshad