Issue
I know adding this should download the Tensorflow AAR so I can call the Android functions for tensorflow.
However, on my custom project. I get this error:
Error:(8, 0) Could not find method compile() for arguments
[org.tensorflow:tensorflow-android:+] on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I am suppose to compile with "org.tensorflow:tensorflow-android:+"
allprojects {
repositories {
jcenter()
}
}
dependencies {
compile 'org.tensorflow:tensorflow-android:+'
}
What do I need to do to install Tensorflow?
Solution
Error:(8, 0) Could not find method compile() for arguments [org.tensorflow:tensorflow-android:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
You should add tensorflow:tensorflow
in module-level build.gradle
section instead of app-level
.
dependencies {
compile 'org.tensorflow:tensorflow-android:+'
}
Answered By - IntelliJ Amiya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.