Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在我的build.gradle文件中添加TensorFlow 2.5.1-rc1的依赖项?_Java_Android - Fatal编程技术网

Java 如何在我的build.gradle文件中添加TensorFlow 2.5.1-rc1的依赖项?

Java 如何在我的build.gradle文件中添加TensorFlow 2.5.1-rc1的依赖项?,java,android,Java,Android,大家好,我正在开发一个android应用程序。我使用的张量流版本有几个错误,所以我切换到夜间构建。但是,最新的夜间构建不支持我的应用程序。我正在尝试切换到较新版本的预发行版,可能是2.5.1。TF2.5.1可以在链接中找到。如何将此版本的TF添加到build.gradle文件中的应用程序中 目前我使用的是2.4.0(稳定版),看起来是这样的: dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' im

大家好,我正在开发一个android应用程序。我使用的张量流版本有几个错误,所以我切换到夜间构建。但是,最新的夜间构建不支持我的应用程序。我正在尝试切换到较新版本的预发行版,可能是2.5.1。TF2.5.1可以在链接中找到。如何将此版本的TF添加到build.gradle文件中的应用程序中

目前我使用的是2.4.0(稳定版),看起来是这样的:

dependencies {
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'com.google.firebase:firebase-auth:20.0.3'
    implementation 'com.google.firebase:firebase-database:19.7.0'
    implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
    implementation "org.tensorflow:tensorflow-lite:2.4.0"
    implementation group:'org.tensorflow',name:'tensorflow-lite-select-tf-ops',version:'2.4.0'
    implementation 'com.google.firebase:firebase-ml-model-interpreter:22.0.3'
//    implementation 'org.tensorflow:tensorflow-lite:2.6.0.dev20210427-nightly-SNAPSHOT'
//    implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'
    testImplementation 'junit:junit:4.+'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
我尝试搜索对的依赖关系,但是找不到实现