android echo,android - echo $ANDROID_HOME returns blank (mac os catalina) - Stack Overflow

I've followed the instructions here to install android studio and the android sdk.

I've added the following lines to ~/.bash_profile, and I've run source ~/.bash_profile.

export ANDROID_HOME=$HOME/Library/Android/sdk

export PATH=$PATH:$ANDROID_HOME/emulator

export PATH=$PATH:$ANDROID_HOME/tools

export PATH=$PATH:$ANDROID_HOME/tools/bin

export PATH=$PATH:$ANDROID_HOME/platform-tools

The path is correct, I've checked it in Android Studio > Preferences > System Settings > Android SDK.

What is the problem? When I run source ~/.bash_profile, and then echo $ANDROID_HOME, I get some output. But if I close the terminal and restart it, and then I run echo $ANDROID_HOME, I get no output.

If found similar questions here and on other websites, but nothing seems to work. Editing the export lines, directly executing "export ..." in the terminal instead of bash_profile, ... . It all fails to work.

Anyone some tips to help me out?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值