android update project --path “path” error: target invalid (ubuntu)

白昼怎懂夜的黑 提交于 2019-12-12 05:16:46

问题


I am trying to build tesseract library in android studio.

abhimanyu@MyPC:~/Documents/tess-two-master/tess-two$ /home/abhimanyu/Android/Sdk/tools/android update project --path .

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


回答1:


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.



来源:https://stackoverflow.com/questions/35734934/android-update-project-path-path-error-target-invalid-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!