How to set up Ionic Environment Variables in Ubuntu or Pop_Os

Опубликовано: 04 Август 2026
на канале: Kl3jvi
352
6

Things you will need:

1) Java JDK 8
-sudo apt install openjdk-8-jdk
-Set the JAVA_HOME environment variable to the location of your JDK installation
Open .bashrc file and add these lines

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

-Set the ANDROID_HOME environment variable to the location of your Android SDK installation
you should install android studio , by default its sdk location is on the /home/android/skd
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools

-(it is also recommended that you add the Android SDK’s tools, tools/bin, and platform-tools directories to your PATH)

2) Android SDK
-the easiest way is to install android studio
./sdkmanager "platform-tools" "platforms;android-28"


3) Gradle
sudo apt install gradle ;