3

这可能是一个非常简单的问题,但由于我是 Cygwin 和 Ant 的新手,这让我非常恼火。

基本上,我正在尝试测试 NDK 附带的 hello-jni 示例(我目前使用 r8)。

我已经设定了路径,一切正常。但是,当我简单地 cd 到示例目录并尝试更新项目时,我收到以下错误。

当我在 -p 之后实际附加路径时会弹出相同的错误

$ android.bat update project -p .
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.

ndk-build 工作正常,但每当我尝试使用 Ant 安装时,我都会不可避免地遇到 build.xml is missing 错误。

谢谢。

4

1 回答 1

6

运行这个命令

android update project -p . -s --target android-14
于 2013-08-20T02:30:21.700 回答