缺少 SDK.DIR?安卓更新项目? [英] SDK.DIR is missing? android update project?

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

问题描述

当我这样做时出现此错误

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 update 项目中输入我收到另一个错误,提示我必须指定项目的路径 .....

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.

谁能给我确切的语法?

推荐答案

cd 到项目目录并执行以下操作: project 一词是命令的一部分,不能替换为实际的项目名称.文档没有说明这一点,应该改进.

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?安卓更新项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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