Tensorflow Lite 编译demo时报错 ERROR: missing input file
来源:互联网 发布:陈震老婆淘宝店叫什么 编辑:程序博客网 时间:2024/05/16 17:33
Tensorflow Lite 编译demo时报错,这些都是坑
错误一
ERROR: missing input file ‘@androidsdk//:build-tools/27.0.2/aapt’
ERROR:/home/xx/.cache/bazel/_bazel_di/0c60e5cf6a2b1bd6f8f12b5ea9e6433c/external/androidsdk/com.android.support/BUILD:3902:1: @androidsdk//com.android.support:support-core-utils-25.2.0: missing input file ‘@androidsdk//:build-tools/27.0.2/aapt’
Target //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo failed to build
Use –verbose_failures to see the command lines of failed build steps.
ERROR:/home/xx/.cache/bazel/_bazel_di/0c60e5cf6a2b1bd6f8f12b5ea9e6433c/external/androidsdk/com.android.support/BUILD:3902:1 1 input file(s) do not exist
INFO: Elapsed time: 25.934s, Critical Path: 4.91s
FAILED: Build did NOT complete successfully
解决方案:
修改或者拷贝build-tools里面的文件夹名称android-8.1.0为27.0.2(视使用的版本而定)
错误二
ERROR: /home/di/workspace/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/BUILD:5:1: no such package ‘@androidsdk//com.android.support’: Android SDK api level 23 was requested but it is not installed in the Android SDK at /home/di/app/adt-bundle-linux-x86_64/sdk. The api levels found were [20]. Please choose an available api level or install api level 23 from the Android SDK Manager. and referenced by ‘//tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo’
ERROR: /home/di/workspace/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/BUILD:5:1: no such package ‘@androidsdk//com.android.support’: Android SDK api level 23 was requested but it is not installed in the Android SDK at /home/xx/adt-bundle-linux-x86_64/sdk. The api levels found were [20]. Please choose an available api level or install api level 23 from the Android SDK Manager. and referenced by ‘//tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo’
ERROR: Analysis of target ‘//tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo’ failed; build aborted: no such package ‘@androidsdk//com.android.support’: Android SDK api level 23 was requested but it is not installed in the Android SDK at /home/xx/adt-bundle-linux-x86_64/sdk. The api levels found were [20]. Please choose an available api level or install api level 23 from the Android SDK Manager.
INFO: Elapsed time: 0.579s
FAILED: Build did NOT complete successfully (13 packages loaded)
解决方案
platforms明明有api level为23的sdk,但是还是会出现这种错误,将platforms中文件夹名称android-6.0 改为 android-23(视sdk版本而定,android 6.0对应 api level 23)
- Tensorflow Lite 编译demo时报错 ERROR: missing input file
- 使用bazel 编译tensorflow serving时报错:fatal error: Python.h: No such file or directory
- 使用bazel 编译tensorflow serving时报错:fatal error: stropts.h: No such file or directory
- android AVD 启动时报错(emulator: erroremulator:ERROR:This AVD's configuration is missing a kernel file )
- centos编译时报错:error: bzlib.h: No such file or directory
- centos编译时报错:error: curses.h: No such file or directory
- KEIL MDK编译报错“error: #5: cannot open source input file "stdarg.h": No”
- 编译时报错 error spawning c1.exe
- TensorFlow Lite
- vc++6.0 编译时报错Fatal Error C1010 unexpected end of file while looking for precompiled header directive
- MySQL 和 c++ 连接时报错error C2146: syntax error : missing ';' before identifier 'fd'
- microservice-demo maven build 时报错(A required class is missing: org/codehaus/plexus/util/Scanner)
- maven 编译失败error in opening zip file/maven missing artifact解决办法
- 编译TensorFlow Android Camera Demo
- vc2008编译WTL8的例子时报错 fatal error CVT1100
- 编译dll 依赖windows库时报错 LINK ERROR 2019
- ERROR ITMS-90023: "Missing required icon file.
- Android Studio 发布APK时报错:input jar file is specified twice
- [TensorFlow] demo1 tf.initialize_all_variables函数换成新的tf.global_variables_initializer函数
- HDU 1166 敌兵布阵
- LA 3708
- 单例模式
- java连接mysql
- Tensorflow Lite 编译demo时报错 ERROR: missing input file
- 微信签名工具 Gen_Signature_Android221cbf.apk 下载
- perl中创建多进程
- 操作符重载
- 2017谷歌开发者大会GDD Review and Kotlin图片和嘉宾PPT放送~
- java中创建对象的几种方式
- .Net学习笔记-.Net基础1.1 变量与运算
- 数据结构13————二叉树的线索化
- 18CStripe