Krish Kumar
11/19/2024, 2:08 PMCould not find method compile() for arguments [org.tensorflowtensorflow lite+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.* 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.
Vampire
11/19/2024, 2:09 PMKrish Kumar
11/19/2024, 2:16 PMVampire
11/19/2024, 2:34 PMC:\Users\User1\AppData\Local\Pub\Cache\hosted\<http://pub.dev|pub.dev>\tflite-1.1.2\android\build.gradle is not compatible with the Gradle version you are using.
The compile configuration that this build tries to use was deprecated many many years and finally removed in Gradle 7.0.
So you either need to use a newer version of that build that is compatible with the Gradle version you are using, or to use an older Gradle version that all your dependencies are compatible with.
But if that build is not compatible with recent Gradle versions and if there is no newer version, then that build is likely to be unmaintained and questionable whether you should use it at all, but if there is no newer version you can of course also try to contact the maintainer and report that issue.