Skip to content

ask9027/Install-Android-Studio-in-Termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Install-Android-Studio-in-Termux

First need to Login to Ubuntu.

Download and install termux from here.

install ubuntu from here.

Now login to user in ubuntu

update and install jdk-11

sudo apt update
sudo apt install openjdk-11-jdk -y # or openjdk-17-jdk

GUI Mode (need to Termux-x11 installed)

Install Termux-x11 from here.

Setup Android Studio

To use android studio in termux need to some files and steps.

download android studio linux tar from here.

Download android-sdk and cmdline-tools from here.

Also Download build-tools and platform-tools from here according to your devices arch.

Now Create Android directory in Ubuntu $HOME directory and extract android-studio,android-sdk into ubuntu $HOME/Android/ directory and extract cmdline-tools, build-tools and platform-tools in $HOME/Android/android-sdk/ dir.

Now open terminal and edit .bashrc file .

nano ~/.bashrc

add these lines to .bashrc

export ANDROID_HOME=$HOME/Android/android-sdk

save it.

run this in terminal.

source ~/.bashrc

Now run android studio

bash ~/Android/android-studio/bin/studio.sh

Cancel setup wizard and uncheck show agin setup wizard.

Now Android Studio setup is completed.

Note:- there is an error to build apk in this process to fix it use following commands.

to fix aapt2 error go to this link.

Hope You did it.

If you encounter any error please first google.

Note:- Layout Manager Not Working. (Tested and Working:- NDK , ADB WI-FI)

to use NDK, download from here

$Thanks$

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published