Installing Termux
Installing the Termux Application
Termux has two release channels, Github and F-Droid, novices are advised to download the version of F-Droid (click on the text to go to the corresponding download channel)
Tip: If you don’t want to do this step, you can use my modified version(NoTermux), which removes environment dependencies.
Install nodejs and aapt (please view README.md for PC version)
Open Termux and execute the following commands in sequence. I will explain them one by one.
Prior statement: **Since the official source is slow, please consider accessing through a proxy as appropriate! **
Tip: You can also search for the source replacement method yourself (not recommended).
This command is used to update all software packages currently in Termux. If you get stuck during the installation process, please use the input method, enter a lowercase y
and press Enter:
pkg up -y
The last step is to install nodejs and aapt
pkg in nodejs aapt -y
Check whether nodejs is installed. As shown in the figure, the installation is successful.
node -v
This picture comes from: Introduction to Mysterious Module Tutorial (Android)
Check whether aapt is installed successfully. If a lot of text is output as shown in the figure, it is successful.
aapt
If you are prompted that aapt 环境损坏 when installing a module, please execute pkg uninstall aapt
to uninstall aapt and then execute pkg up && pkg in aapt
to reinstall aapt.
If you are prompted that node 环境损坏 when installing a module, please execute pkg uninstall nodejs
to uninstall nodejs and then execute pkg up && pkg in nodejs
to reinstall nodejs.