自制软件在哪里安装android-sdk? [英] Where does homebrew install android-sdk?

查看:65
本文介绍了自制软件在哪里安装android-sdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行以下命令时自制软件在哪里安装android-sdk:

Where does homebrew install the android-sdk when you run the command:

brew cask install android-sdk

我希望能够将其添加到PATH.

I want to be able to add it to the PATH.

推荐答案

android-sdk的安装文件夹为:

/usr/local/Cellar/android-sdk/<VERSION>

因此,如果要将其添加到PATH,则需要将以下行添加到〜/.bashrc

Therefore, if you want to add it to PATH, you need to add the following line to ~/.bashrc

export PATH=$PATH:/usr/local/Cellar/android-sdk/<VERSION>/tools:/usr/local/Cellar/android-sdk/<VERSION>/platform-tools

别忘了用已安装的版本替换<VERSION>,只需查看android-sdk文件夹以查看已安装的版本.

Don't forget to replace <VERSION> with an installed version, just take a look inside of android-sdk folder to see what version you have installed.

这篇关于自制软件在哪里安装android-sdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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