Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 34008  / 3 Years ago, sat, september 4, 2021, 7:27:07

I opened the /etc/environment and added the line ANDROID_SDK_HOME="/home/tom/android-sdk" but I tried echo $ANDROID_SDK_HOME but displayed nothing. I have JAVA_HOME in the same /etc/environment but its working. Please help me fix the problem. Thanks in advance.


More From » 12.04

 Answers
6

Environment variables can be defined permanently by editing the .profile file in your home directory. Here's how:



Edit your .profile file with a command like gedit ~/.profile. Append this to the end of the file:



export ANDROID_SDK_HOME=/home/tom/android-sdk


You can source .profile to make it apply right away. Each time you restart your system, the .profile file is loaded, restoring this setting.


[#32261] Sunday, September 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;