FAILURE: Build failed with an exception. * Where:...
# community-support
k
FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\User1\AppData\Local\Pub\Cache\hosted\pub.dev\tflite-1.1.2\android\build.gradle' line: 36 * What went wrong: A problem occurred evaluating project ':tflite'.
Could 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.
v
Is there a question hidden somewhere? 😉
k
I am using tflite model and it gives me error while compiling the model What shouldIi Do ?
v
The Gradle build defined in
C:\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.