SDK.DIR缺失? Android的更新项目? [英] SDK.DIR is missing? android update project?

查看:340
本文介绍了SDK.DIR缺失? Android的更新项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误,当我做

I get this error when I do

$ ant release
sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var

打字Android的更新项目中,我得到另一个错误,说我必须指定路径....到项目中。

typing in android update project I get another error saying I must specify the path .... to the project.

然后,我试着用cd命令进入我的项目的目录,并做

Then I try cd into the directory of my project and do

android update -p .
android update -path . 

等,它说 -p -path 没有全球公认的。

etc and it says -p and -path are not globally recognized.

可能有人只给我确切的语法?

Could someone just give me the exact syntax?

推荐答案

cd到项目目录并执行以下命令:这个词项目是命令的一部分,而不是替换为一个实际的项目名称。文档没有明确这一点,应该加以改进。

cd to project directory and execute the following: The word project is part of the command, and is not to be replaced with an actual project name. The documentation does not make this clear and should be improved.

   android update project -p .

这篇关于SDK.DIR缺失? Android的更新项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆