android更新项目--path"path"错误:目标无效(ubuntu) [英] android update project --path "path" error: target invalid (ubuntu)
问题描述
我正在尝试在android studio中构建tesseract库.
I am trying to build tesseract library in android studio.
abhimanyu @ MyPC:〜/Documents/tess-two-master/tess-two $/home/abhimanyu/Android/Sdk/tools/android更新项目--path.
abhimanyu@MyPC:~/Documents/tess-two-master/tess-two$ /home/abhimanyu/Android/Sdk/tools/android update project --path .
错误:项目没有设置目标或目标无效. 请为'android update'命令提供--target.
Error: The project either has no target set or the target is invalid. Please provide a --target to the 'android update' command.
然后指定什么路径?请帮助
What path to specify then? plz help
推荐答案
您可以安装Android平台的API级别8,也可以包含--target
参数来避免此错误.
You can install API level 8 of the Android platform, or include a --target
parameter to avoid this error.
但是更好的选择是不要尝试自己构建项目,而使用将该库作为预编译的二进制文件.
But a better alternative is to not try to build the project yourself, and use the library as a precompiled binary.
这篇关于android更新项目--path"path"错误:目标无效(ubuntu)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!