Tensorflow-Lite Code-lab不能与构建工具3.2.0-alpha05一起使用

时间:2018-03-06 17:14:07

标签: android-studio tensorflow android-gradle

tf-lite的示例项目适用于3.0.1但不适用于3.2.0-alpha05,可能是3.1.0 RC(未尝试)

请查看此问题 https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/index.html#7

.gradle/caches/transforms-1/files-1.1/tensorflow-lite-0.1.1.aar/092814ba6530796fca8e7fc3596f1aa2/AndroidManifest.xml:2:1-6:12 Error:
        Missing 'package' declaration in manifest at [org.tensorflow:tensorflow-lite:0.1.1] AndroidManifest.xml:2:1-6:12

https://issuetracker.google.com/issues/74173626

1 个答案:

答案 0 :(得分:2)

作为解决方法:
转到" Merged Manifest"在Android Studio中,如本文所述:https://stackoverflow.com/a/41889558/9570311 然后点击tensorflow-lite:0.1 manifest并添加 org.tensorflow.lite 作为包: package="org.tensorflow.lite"