Temp 1851144630

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 24

hives.

After this operation, 281 MB of additi


onal disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
ca-certificates all 1:2024.09.24 [129
kB]
Get:2 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
ca-certificates-java all 1:2024.09.24
[118 kB]
Get:3 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libpng aarch64 1.6.44 [196 kB]
Get:4 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
freetype aarch64 2.13.3 [410 kB]
Get:5 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
giflib aarch64 5.2.2 [18.2 kB]
Get:6 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libandroid-shmem aarch64 0.5 [6960 B]
Get:7 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libandroid-spawn aarch64 0.3 [15.2 kB
]
Get:8 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libjpeg-turbo aarch64 3.0.4 [374 kB]
Get:9 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libxau aarch64 1.0.11 [8488 B]
Get:10 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxdmcp aarch64 1.1.5 [24.4 kB]
Get:11 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxcb aarch64 1.17.0 [935 kB]
Get:12 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libx11 aarch64 1.8.10 [1913 kB]
Get:13 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxext aarch64 1.3.6 [98.0 kB]
Get:14 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxi aarch64 1.8.1 [142 kB]
Get:15 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxrender aarch64 0.9.11 [23.6 kB]
Get:16 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 libxtst aarch64 1.2.5 [25.8 kB]
Get:17 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 openjdk-17 aarch64 17.0-36 [97.7 MB]
Get:18 https://mirror.nyist.edu.cn/ter
mux/apt/termux-main stable/main aarch6
4 openjdk-17-x aarch64 17.0-36 [12.8 M
B]
Fetched 115 MB in 25s (4550 kB/s)
(Reading database ... 23165 files and
directories currently installed.)
Preparing to unpack .../ca-certificate
s_1%3a2024.09.24_all.deb ...
Unpacking ca-certificates (1:2024.09.2
4) over (1:2024.07.02) ...
Setting up ca-certificates (1:2024.09.
24) ...
Selecting previously unselected packag
e ca-certificates-java.
(Reading database ... 23165 files and
directories currently installed.)
Preparing to unpack .../00-ca-certific
ates-java_1%3a2024.09.24_all.deb ...
Unpacking ca-certificates-java (1:2024
.09.24) ...
Selecting previously unselected packag
e libpng.
Preparing to unpack .../01-libpng_1.6.
44_aarch64.deb ...
Unpacking libpng (1.6.44) ...
Selecting previously unselected packag
e freetype.
Preparing to unpack .../02-freetype_2.
13.3_aarch64.deb ...
Unpacking freetype (2.13.3) ...
Selecting previously unselected packag
e giflib.
Preparing to unpack .../03-giflib_5.2.
2_aarch64.deb ...
Unpacking giflib (5.2.2) ...
Selecting previously unselected packag
e libandroid-shmem.
Preparing to unpack .../04-libandroid-
shmem_0.5_aarch64.deb ...
Unpacking libandroid-shmem (0.5) ...
Selecting previously unselected packag
e libandroid-spawn.
Preparing to unpack .../05-libandroid-
spawn_0.3_aarch64.deb ...
Unpacking libandroid-spawn (0.3) ...
Selecting previously unselected packag
e libjpeg-turbo.
Preparing to unpack .../06-libjpeg-tur
bo_3.0.4_aarch64.deb ...
Unpacking libjpeg-turbo (3.0.4) ...
Selecting previously unselected packag
e libxau.
Preparing to unpack .../07-libxau_1.0.
11_aarch64.deb ...
Unpacking libxau (1.0.11) ...
Selecting previously unselected packag
e libxdmcp.
Preparing to unpack .../08-libxdmcp_1.
1.5_aarch64.deb ...
Unpacking libxdmcp (1.1.5) ...
Selecting previously unselected packag
e libxcb.
Preparing to unpack .../09-libxcb_1.17
.0_aarch64.deb ...
Unpacking libxcb (1.17.0) ...
Selecting previously unselected packag
e libx11.
Preparing to unpack .../10-libx11_1.8.
10_aarch64.deb ...
Unpacking libx11 (1.8.10) ...
Selecting previously unselected packag
e libxext.
Preparing to unpack .../11-libxext_1.3
.6_aarch64.deb ...
Unpacking libxext (1.3.6) ...
Selecting previously unselected packag
e libxi.
Preparing to unpack .../12-libxi_1.8.1
_aarch64.deb ...
Unpacking libxi (1.8.1) ...
Selecting previously unselected packag
e libxrender.
Preparing to unpack .../13-libxrender_
0.9.11_aarch64.deb ...
Unpacking libxrender (0.9.11) ...
Selecting previously unselected packag
e libxtst.
Preparing to unpack .../14-libxtst_1.2
.5_aarch64.deb ...
Unpacking libxtst (1.2.5) ...
Selecting previously unselected packag
e openjdk-17.
Preparing to unpack .../15-openjdk-17_
17.0-36_aarch64.deb ...
Unpacking openjdk-17 (17.0-36) ...
Selecting previously unselected packag
e openjdk-17-x.
Preparing to unpack .../16-openjdk-17-
x_17.0-36_aarch64.deb ...
Unpacking openjdk-17-x (17.0-36) ...
Setting up libpng (1.6.44) ...
Setting up libxdmcp (1.1.5) ...
Setting up libandroid-shmem (0.5) ...
Setting up libandroid-spawn (0.3) ...
Setting up freetype (2.13.3) ...
Setting up libxau (1.0.11) ...
Setting up libjpeg-turbo (3.0.4) ...
Setting up giflib (5.2.2) ...
Setting up openjdk-17 (17.0-36) ...
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/etc/profile.d/java.sh to provid
e /data/data/com.termux/files/usr/etc/
profile.d/java.sh (java-profile) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jps to provide /data/data/c
om.termux/files/usr/bin/jps (jps) in a
uto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jar to provide /data/data/c
om.termux/files/usr/bin/jar (jar) in a
uto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/javac to provide /data/data
/com.termux/files/usr/bin/javac (javac
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jhsdb to provide /data/data
/com.termux/files/usr/bin/jhsdb (jhsdb
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jimage to provide /data/dat
a/com.termux/files/usr/bin/jimage (jim
age) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jfr to provide /data/data/c
om.termux/files/usr/bin/jfr (jfr) in a
uto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jlink to provide /data/data
/com.termux/files/usr/bin/jlink (jlink
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/javap to provide /data/data
/com.termux/files/usr/bin/javap (javap
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jmap to provide /data/data/
com.termux/files/usr/bin/jmap (jmap) i
n auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jpackage to provide /data/d
ata/com.termux/files/usr/bin/jpackage
(jpackage) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jconsole to provide /data/d
ata/com.termux/files/usr/bin/jconsole
(jconsole) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jrunscript to provide /data
/data/com.termux/files/usr/bin/jrunscr
ipt (jrunscript) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/serialver to provide /data/
data/com.termux/files/usr/bin/serialve
r (serialver) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jshell to provide /data/dat
a/com.termux/files/usr/bin/jshell (jsh
ell) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/java to provide /data/data/
com.termux/files/usr/bin/java (java) i
n auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jstatd to provide /data/dat
a/com.termux/files/usr/bin/jstatd (jst
atd) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jarsigner to provide /data/
data/com.termux/files/usr/bin/jarsigne
r (jarsigner) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/javadoc to provide /data/da
ta/com.termux/files/usr/bin/javadoc (j
avadoc) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jcmd to provide /data/data/
com.termux/files/usr/bin/jcmd (jcmd) i
n auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jmod to provide /data/data/
com.termux/files/usr/bin/jmod (jmod) i
n auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/rmiregistry to provide /dat
a/data/com.termux/files/usr/bin/rmireg
istry (rmiregistry) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/keytool to provide /data/da
ta/com.termux/files/usr/bin/keytool (k
eytool) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jstat to provide /data/data
/com.termux/files/usr/bin/jstat (jstat
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jdeprscan to provide /data/
data/com.termux/files/usr/bin/jdeprsca
n (jdeprscan) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jstack to provide /data/dat
a/com.termux/files/usr/bin/jstack (jst
ack) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jinfo to provide /data/data
/com.termux/files/usr/bin/jinfo (jinfo
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jdeps to provide /data/data
/com.termux/files/usr/bin/jdeps (jdeps
) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/bin/jdb to provide /data/data/c
om.termux/files/usr/bin/jdb (jdb) in a
uto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jar.1.gz to provide /d
ata/data/com.termux/files/usr/share/ma
n/man1/jar.1.gz (jar.1.gz) in auto mod
e
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jps.1.gz to provide /d
ata/data/com.termux/files/usr/share/ma
n/man1/jps.1.gz (jps.1.gz) in auto mod
e
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/serialver.1.gz to prov
ide /data/data/com.termux/files/usr/sh
are/man/man1/serialver.1.gz (serialver
.1.gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jmap.1.gz to provide /
data/data/com.termux/files/usr/share/m
an/man1/jmap.1.gz (jmap.1.gz) in auto
mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jrunscript.1.gz to pro
vide /data/data/com.termux/files/usr/s
hare/man/man1/jrunscript.1.gz (jrunscr
ipt.1.gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/rmiregistry.1.gz to pr
ovide /data/data/com.termux/files/usr/
share/man/man1/rmiregistry.1.gz (rmire
gistry.1.gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/javap.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/javap.1.gz (javap.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jdeps.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/jdeps.1.gz (jdeps.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jshell.1.gz to provide
/data/data/com.termux/files/usr/share
/man/man1/jshell.1.gz (jshell.1.gz) in
auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jlink.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/jlink.1.gz (jlink.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jmod.1.gz to provide /
data/data/com.termux/files/usr/share/m
an/man1/jmod.1.gz (jmod.1.gz) in auto
mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jstat.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/jstat.1.gz (jstat.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jstatd.1.gz to provide
/data/data/com.termux/files/usr/share
/man/man1/jstatd.1.gz (jstatd.1.gz) in
auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jpackage.1.gz to provi
de /data/data/com.termux/files/usr/sha
re/man/man1/jpackage.1.gz (jpackage.1.
gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jarsigner.1.gz to prov
ide /data/data/com.termux/files/usr/sh
are/man/man1/jarsigner.1.gz (jarsigner
.1.gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jdb.1.gz to provide /d
ata/data/com.termux/files/usr/share/ma
n/man1/jdb.1.gz (jdb.1.gz) in auto mod
e
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/keytool.1.gz to provid
e /data/data/com.termux/files/usr/shar
e/man/man1/keytool.1.gz (keytool.1.gz)
in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jfr.1.gz to provide /d
ata/data/com.termux/files/usr/share/ma
n/man1/jfr.1.gz (jfr.1.gz) in auto mod
e
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jstack.1.gz to provide
/data/data/com.termux/files/usr/share
/man/man1/jstack.1.gz (jstack.1.gz) in
auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jconsole.1.gz to provi
de /data/data/com.termux/files/usr/sha
re/man/man1/jconsole.1.gz (jconsole.1.
gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jdeprscan.1.gz to prov
ide /data/data/com.termux/files/usr/sh
are/man/man1/jdeprscan.1.gz (jdeprscan
.1.gz) in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jhsdb.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/jhsdb.1.gz (jhsdb.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/javadoc.1.gz to provid
e /data/data/com.termux/files/usr/shar
e/man/man1/javadoc.1.gz (javadoc.1.gz)
in auto mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/javac.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/javac.1.gz (javac.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/java.1.gz to provide /
data/data/com.termux/files/usr/share/m
an/man1/java.1.gz (java.1.gz) in auto
mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jinfo.1.gz to provide
/data/data/com.termux/files/usr/share/
man/man1/jinfo.1.gz (jinfo.1.gz) in au
to mode
update-alternatives: using /data/data/
com.termux/files/usr/lib/jvm/java-17-o
penjdk/man/man1/jcmd.1.gz to provide /
data/data/com.termux/files/usr/share/m
an/man1/jcmd.1.gz (jcmd.1.gz) in auto
mode
Setting up libxcb (1.17.0) ...
Setting up ca-certificates-java (1:202
4.09.24) ...
Setting up libx11 (1.8.10) ...
Setting up libxext (1.3.6) ...
Setting up libxi (1.8.1) ...
Setting up libxrender (0.9.11) ...
Setting up libxtst (1.2.5) ...
Setting up openjdk-17-x (17.0-36) ...
~ $ mkdir -p ~/android-sdk/cmdline-too
ls
cd ~/android-sdk/cmdline-tools
wget https://dl.google.com/android/rep
ository/commandlinetools-linux-7583922
_latest.zip
The program wget is not installed. Ins
tall it by executing:
pkg install wget
~/android-sdk/cmdline-tools $ pkg inst
all wget
No mirror or mirror group selected. Y
ou might want to select one by running
'termux-change-repo'
Checking availability of current mirro
r:
[*] https://mirror.nyist.edu.cn/termux
/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will
be installed:
libuuid
The following NEW packages will be ins
talled:
libuuid wget
0 upgraded, 2 newly installed, 0 to re
move and 29 not upgraded.
Need to get 301 kB of archives.
After this operation, 909 kB of additi
onal disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
libuuid aarch64 2.40.2-1 [15.0 kB]
Get:2 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
wget aarch64 1.24.5 [286 kB]
Fetched 301 kB in 3s (91.9 kB/s)
Selecting previously unselected packag
e libuuid.
(Reading database ... 27844 files and
directories currently installed.)
Preparing to unpack .../libuuid_2.40.2
-1_aarch64.deb ...
Unpacking libuuid (2.40.2-1) ...
Selecting previously unselected packag
e wget.
Preparing to unpack .../wget_1.24.5_aa
rch64.deb ...
Unpacking wget (1.24.5) ...
Setting up libuuid (2.40.2-1) ...
Setting up wget (1.24.5) ...
~/android-sdk/cmdline-tools $ wget htt
ps://dl.google.com/android/repository/
commandlinetools-linux-7583922_latest.
zip
--2024-10-12 07:16:15-- https://dl.go
ogle.com/android/repository/commandlin
etools-linux-7583922_latest.zip
Resolving dl.google.com (dl.google.com
)... 142.251.220.206, 2404:6800:4017:8
04::200e
Connecting to dl.google.com (dl.google
.com)|142.251.220.206|:443... connecte
d.
HTTP request sent, awaiting response..
. 200 OK
Length: 109673042 (105M) [application/
zip]
Saving to: ‘commandlinetools-linux-758
3922_latest.zip’

comman 0% 0 --.-KB/s
command 1% 1.16M 5.77MB/s
commandl 10% 11.06M 27.5MB/s
commandli 20% 21.50M 35.7MB/s
commandlin 30% 31.62M 39.4MB/s
commandline 40% 42.09M 42.0MB/s
commandlinet 50% 52.44M 43.5MB/s
ommandlineto 60% 62.83M 44.7MB/s
mmandlinetoo 67% 71.11M 44.3MB/s
mandlinetool 75% 78.73M 43.6MB/s
andlinetools 81% 85.03M 42.4MB/s
ndlinetools- 86% 90.62M 41.1MB/s
dlinetools-l 93% 97.67M 40.6MB/s
linetools-li 99% 104.36M 40.0MB/s
commandlinet 100% 104.59M 40.0MB/s
in 2.6s

2024-10-12 07:16:18 (40.0 MB/s) - ‘com


mandlinetools-linux-7583922_latest.zip
’ saved [109673042/109673042]

~/android-sdk/cmdline-tools $ unzip co
mmandlinetools-linux-7583922_latest.zi
p -d ~/android-sdk/cmdline-tools/
Archive: commandlinetools-linux-75839
22_latest.zip
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/avdmanager
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/sdkmanager
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/retrace
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/apkanalyzer
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/lint
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/screenshot2
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/profgen
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/libavdmanager_lib
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/sdklib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/annotations/libannotatio
ns.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/common/common.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/code
/findbugs/jsr305/3.0.2/jsr305-3.0.2.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/erro
rprone/error_prone_annotations/2.3.4/e
rror_prone_annotations-2.3.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/failureaccess/1.0.1/failureaccess-1.
0.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/listenablefuture/9999.0-empty-to-avo
id-conflict-with-guava/listenablefutur
e-9999.0-empty-to-avoid-conflict-with-
guava.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/j2ob
jc/j2objc-annotations/1.3/j2objc-annot
ations-1.3.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/checkerfram
ework/checker-qual/3.5.0/checker-qual-
3.5.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/guava/30.1-jre/guava-30.1-jre.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-common/1.4.32/kotl
in-stdlib-common-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/a
nnotations/13.0/annotations-13.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib/1.4.32/kotlin-stdl
ib-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/kotlin-plugin-i
j/Kotlin/kotlinc/lib/kotlin-stdlib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/device_validator/dvlib.j
ar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/layoutlib-api/layoutlib-
api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/sf/kxml/kxm
l2/2.3.0/kxml2-2.3.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/repository/repository.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/protos
/src/main/proto/libproto.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/prot
obuf/protobuf-java/3.10.0/protobuf-jav
a-3.10.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/shared
/analytics-shared.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/code
/gson/gson/2.8.6/gson-2.8.6.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/java/dev/jn
a/jna/5.6.0/jna-5.6.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/java/dev/jn
a/jna-platform/5.6.0/jna-platform-5.6.
0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-jdk7/1.4.32/kotlin
-stdlib-jdk7-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-jdk8/1.4.32/kotlin
-stdlib-jdk8-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/jakarta/activat
ion/jakarta.activation-api/1.2.1/jakar
ta.activation-api-1.2.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/jakarta/xml/bin
d/jakarta.xml.bind-api/2.3.2/jakarta.x
ml.bind-api-2.3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/comm
ons/commons-compress/1.20/commons-comp
ress-1.20.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/sun/istack/
istack-commons-runtime/3.0.8/istack-co
mmons-runtime-3.0.8.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/sun/xml/fas
tinfoset/FastInfoset/1.2.16/FastInfose
t-1.2.16.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/glassfish/j
axb/txw2/2.3.2/txw2-2.3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jvnet/staxe
x/stax-ex/1.8.1/stax-ex-1.8.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/glassfish/j
axb/jaxb-runtime/2.3.2/jaxb-runtime-2.
3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/commons-logging
/commons-logging/1.2/commons-logging-1
.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/commons-codec/c
ommons-codec/1.10/commons-codec-1.10.j
ar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/http
components/httpcore/4.4.10/httpcore-4.
4.10.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/http
components/httpclient/4.5.6/httpclient
-4.5.6.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/libsdkmanager_lib
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/r8.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/cli/analyzer-c
li.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/binary-resourc
es.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/analyzer/analy
zer.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/explainer.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/generator.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/shared.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-model.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/builder-mod
el/libbuilder-model.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdk-common/sdk-common.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/aaptcompile
r/libaaptcompiler.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/tracke
r/analytics-tracker.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/aapt2-proto
/libaapt2-proto-with-notice.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/bouncycastl
e/bcprov-jdk15on/1.56/bcprov-jdk15on-1
.56.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/bouncycastl
e/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1
.56.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/builder-tes
t-api/builder-test-api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/ddmlib/ddmlib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/android/too
ls/build/aapt2-proto/4.1.0-alpha01-619
3524/aapt2-proto-4.1.0-alpha01-6193524
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/javax/inject/ja
vax.inject/1/javax.inject-1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/i
ntellij/deps/trove4j/1.0.20181211/trov
e4j-1.0.20181211.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-reflect/1.4.32/kotlin-ref
lect-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/xml-apis/xml-ap
is/1.4.01/xml-apis-1.4.01.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/xerces/xercesIm
pl/2.12.0/xercesImpl-2.12.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/intell
ij-core/intellij-core-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/kotlin
-compiler/kotlin-compiler-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/uast/u
ast-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/manifest-me
rger.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
/7.0/asm-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
-tree/7.0/asm-tree-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-checks.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
-analysis/7.0/asm-analysis-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/beust/jcomm
ander/1.78/jcommander-1.78.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/util/
2.2.4/util-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/dexli
b2/2.2.4/dexlib2-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/baksm
ali/2.2.4/baksmali-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/sf/jopt-sim
ple/jopt-simple/4.9/jopt-simple-4.9.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/cli/libcli.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/misc/screenshot2/libscre
enshot2lib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen/profgen-cli/libp
rofgen-cli-lib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlinx/kotlinx-cli-jvm/0.3.1/kotlinx-c
li-jvm-0.3.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen/profgen/libprofg
en.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/avdmanager-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdkmanager-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/retrace-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkanalyzer-classpath.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/screenshot2-classpath.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/source.properties
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/NOTICE.txt
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/README
~/android-sdk/cmdline-tools $ mkdir ~/
android-sdk/cmdline-tools/latest
mv ~/android-sdk/cmdline-tools/cmdline
-tools/* ~/android-sdk/cmdline-tools/l
atest/
~/android-sdk/cmdline-tools $ ~/androi
d-sdk/cmdline-tools/latest/bin/sdkmana
ger --sdk_root=~/android-sdk "platform
-tools" "build-tools;30.0.3" "platform
s;android-30"

ERROR: JAVA_HOME is not set and no 'ja


va' command could be found in your PAT
H.

Please set the JAVA_HOME variable in y


our environment to match the
location of your Java installation.

~/android-sdk/cmdline-tools $ java -ve


rsion
openjdk version "17-internal" 2021-09-
14
OpenJDK Runtime Environment (build 17-
internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (build 17-int
ernal+0-adhoc..src, mixed mode)
~/android-sdk/cmdline-tools $ echo 'ex
port JAVA_HOME=/data/data/com.termux/f
iles/usr/lib/jvm/openjdk-17' >> ~/.bas
hrc
echo 'export PATH=$PATH:$JAVA_HOME/bin
' >> ~/.bashrc
~/android-sdk/cmdline-tools $ source ~
/.bashrc
~/android-sdk/cmdline-tools $ gradle -
v
The program gradle is not installed. I
nstall it by executing:
pkg install gradle
~/android-sdk/cmdline-tools $ ~/androi
d-sdk/cmdline-tools/latest/bin/sdkmana
ger --sdk_root=~/android-sdk "platform
-tools" "build-tools;30.0.3" "platform
s;android-30"

ERROR: JAVA_HOME is set to an invalid


directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17

Please set the JAVA_HOME variable in y


our environment to match the
location of your Java installation.

~/android-sdk/cmdline-tools $ ~/androi
d-sdk/cmdline-tools/latest/bin/sdkmana
ger --sdk_root=~/android-sdk "platform
-tools" "build-tools;30.0.3" "platform
s;android-30"

ERROR: JAVA_HOME is set to an invalid


directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17

Please set the JAVA_HOME variable in y


our environment to match the
location of your Java installation.

~/android-sdk/cmdline-tools $ gradle -
v
The program gradle is not installed.
Install it by executing:
pkg install gradle
~/android-sdk/cmdline-tools $ pkg inst
all gradle
No mirror or mirror group selected. Yo
u might want to select one by running
'termux-change-repo'
Checking availability of current mirro
r:
[*] https://mirror.nyist.edu.cn/termux
/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be ins
talled:
gradle
0 upgraded, 1 newly installed, 0 to re
move and 29 not upgraded.
Need to get 134 MB of archives.
After this operation, 152 MB of additi
onal disk space will be used.
Get:1 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
gradle all 1:8.10.2 [134 MB]
Fetched 134 MB in 41s (3286 kB/s)
Selecting previously unselected packag
e gradle.
(Reading database ... 27854 files and
directories currently installed.)
Preparing to unpack .../gradle_1%3a8.1
0.2_all.deb ...
Unpacking gradle (1:8.10.2) ...
Setting up gradle (1:8.10.2) ...
~/android-sdk/cmdline-tools $ gradle -
v

ERROR: JAVA_HOME is set to an invalid


directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17

Please set the JAVA_HOME variable in y


our environment to match the
location of your Java installation.

~/android-sdk/cmdline-tools $ java -ve


rsion
openjdk version "17-internal" 2021-09
-14
OpenJDK Runtime Environment (build 1
7-internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (build 17-int
ernal+0-adhoc..src, mixed mode)
~/android-sdk/cmdline-tools $ # Locate
the Java binary
which java

# Find the full path of the Java execu


table
readlink -f $(which java)
# Set JAVA_HOME based on the correct p
ath
export JAVA_HOME=/data/data/com.termux
/files/usr/lib/jvm/openjdk-17
export PATH=$PATH:$JAVA_HOME/bin

gradle -vGradle configuration_HOME/bin


The program which is not installed. In
stall it by executing:
pkg install which
The program which is not installed. In
stall it by executing:
pkg install which
readlink: missing operand
Try 'readlink --help' for more informa
tion.
openjdk version "17-internal" 2021-09-
14
OpenJDK Runtime Environment (build 17-
internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (build 17-int
ernal+0-adhoc..src, mixed mode)

ERROR: JAVA_HOME is set to an invalid


directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17

Please set the JAVA_HOME variable in y


our environment to match the
location of your Java installation.

~/android-sdk/cmdline-tools $ # Verify
Gradle configuration
~/android-sdk/cmdline-tools $ # Locate
the Java binary
~/android-sdk/cmdline-tools $ which ja
va
The program which is not installed. In
stall it by executing:
pkg install which
~/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Find t
he full path of the Java executable
~/android-sdk/cmdline-tools $ readlink
-f $(which java)
The program which is not installed. In
stall it by executing:
pkg install which
readlink: missing operand
Try 'readlink --help' for more informa
tion.
~/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Set JA
VA_HOME based on the correct path
~/android-sdk/cmdline-tools $ export J
AVA_HOME=/data/data/com.termux/files/u
sr/lib/jvm/openjdk-17
~/android-sdk/cmdline-tools $ export P
ATH=$PATH:$JAVA_HOME/bin ~
/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Make t
he change permanent ~
/android-sdk/cmdline-tools $ echo 'exp
ort JAVA_HOME=/data/data/com.termux/fi
les/usr/lib/jvm/openjdk-17' >> ~/.bash
rc
~/android-sdk/cmdline-tools $ echo 'ex
port PATH=$PATH:$JAVA_HOME/bin' >> ~/.
bashrc ~/android-sdk/
cmdline-tools $ source ~/.bashrc ~/
android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Verify
Java installation ~
/android-sdk/cmdline-tools $ java -ver
sion
openjdk version "17-internal" 2021-09-
14
OpenJDK Runtime Environment (build 17-
internal+0-adhoc..src) O
penJDK 64-Bit Server VM (build 17-inte
rnal+0-adhoc..src, mixed mode) ~/
android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools
$ # Verify Gradle configuration
~/android-sdk/cmdline-tools $
gradle -v

ERROR: JAVA_HOME is set to an invalid


directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17
Please set the JAVA_HOME variable in y
our environment to match the
location of your Java installation.
~/android-sdk/cmdline-tools $ readlink
-f $(which java) T
he program which is not installed. Ins
tall it by executing: p
kg install which readlink: missi
ng operand
Try 'readlink --help' for more informa
tion. ~/android-sdk/cmdline-tool
s $ pkg install which No mirror or m
irror group selected. You might want t
o select one by running 'termux-change
-repo' Checking availability of cur
rent mirror: [*] https://mirr
or.nyist.edu.cn/termux/apt/termux-main
: ok Hit:1 https://noh
ajc.github.io termux InRelease
Hit:2 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable InRelease R
eading package lists... Done
Building dependency tree... Done
Reading state information.
.. Done 29 packages ca
n be upgraded. Run 'apt list --upgrada
ble' to see them. Reading package
lists... Done
Building dependency tree... Done
Reading state information.
.. Done The following
NEW packages will be installed:
which 0 upgraded, 1
newly installed, 0 to remove and 29 n
ot upgraded. Need to get 12
.4 kB of archives.
After this operation, 86.0 kB of addit
ional disk space will be used.
Get:1 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
which aarch64 2.21 [12.4 kB]
Fetched 12.4 kB in 2s (7774
B/s) Selecting previ
ously unselected package which.
(Reading database ... 28169 files and
directories currently installed.)
Preparing to unpack .../which_2.21_aar
ch64.deb ...Unpacking which (2.21) ...
Setting up whi
ch (2.21) ...
~/android-sdk/cmdline-tools $ readlink
-f $(which java)
/data/data/com.termux/files/usr/lib/jv
m/java-17-openjdk/bin/java
~/android-sdk/cmdline-tools $ # Locate
the Java binary w
hich java
# Find the full path of the Java execu
~/android-sdk/cmdline-tools $ # Locate
the Java binary which java

# Find the full path of the Java execu


table
readlink -f $(which java)

# Set JAVA_HOME based on the correct p


athake the change permanent e
xport JAVA_HOME=/data/data/com.termux/
files/usr/lib/jvm/openjdk-17jdk-17' >g
radle -vGradle configuration_HOME/bin
/data/data/com.termux/files/usr/bin/ja
va /data/data/com.termux/file
s/usr/lib/jvm/java-17-openjdk/bin/java
openjdk version "17-internal" 2021-09-
14 OpenJDK Runtime Environmen
t (build 17-internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (b
uild 17-internal+0-adhoc..src, mixed m
ode)
ERROR: JAVA_HOME is set to an invalid
directory: /data/data/com.termux/files
/usr/lib/jvm/openjdk-17
Please set the JAVA_HOME variable in y
our environment to match the l
ocation of your Java installation.
~/android-sdk/cmdline-tools $ echo 'ex
port JAVA_HOME=/data/data/com.termux/f
iles/usr/lib/jvm/java-17-openjdk' >> ~
/.bashrc echo 'export PATH=$PATH:$JA
VA_HOME/bin' >> ~/.bashrc
~/android-sdk/cmdline-tools
$ source ~/.bashrc ~/android-sdk/cm
dline-tools $ java -version
openjdk version "17-internal" 2021-09-
14
OpenJDK Runtime Environment (build 17-
internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (build 17-int
ernal+0-adhoc..src, mixed mode) ~
/android-sdk/cmdline-tools $ gradle -v

Welcome to Gradle 8.10.2!


Here are the highlights of this releas
e: - Support for Java 23
- Faster configuration cache
- Better configuration ca
che reports
For more details see https://docs.grad
le.org/8.10.2/release-notes.html

--------------------------------------
---------------------- G
radle 8.10.2 --------------
--------------------------------------
--------
Build time: 2024-09-23 21:28:39 UTC
Revision: 415adb9e06a
516c44b391edff552fd42139443f7
Kotlin: 1.9.24 Groovy:
3.0.22
Ant: Apache Ant(TM) version
1.10.14 compiled on August 16 2023 L
auncher JVM: 17-internal (Oracle Corp
oration 17-internal+0-adhoc..src)
Daemon JVM: /data/data/com.termux/f
iles/usr/lib/jvm/java-17-openjdk (no J
DK specified, using current Java home)
OS: Linux 6.1.57
-android14-11-g792270e27ab1-ab11683491
aarch64

~/android-sdk/cmdline-tools $ #!/bin/b
ash
~/android-sdk/cmdline-tools $ #!/bin/b
ash
~/android-sdk/cmdline-tools $ #!/bin/b
ash

# Navigate to the project directory


~/android-sdk/cmdline-tool
s $ #!/bin/bash
# Navigate to the project directory
~/android-sdk/cmdline-tools $ #!/bin/b
ash # Navigate to
the project directory cd ~/your-andr
oid-project ~/android-sdk/
cmdline-tools $ #!/bin/bash
~/android-sdk/cmdline-tools $ #!/bin/b
ash # Navigate to the project
directory cd ~/your-android-project
~/android-sdk/cmdline-tool
s $ #!/bin/bash
# Navigate to the project directory
cd ~/your-android-project
# Clean the project
./gradlew clean
# Build the APK1 -keystore ~/release-k
./gradlew assembleReleaseputs/apk/rele
ase/app-release-unsigned.apk release-k
# Sign the APK
jarsigner -verbose -sigalg SHA1withRSA
-digestalg SHA1 -keystore ~/release-k
ey.keystore app/build/outputs/apk/rele
ase/app-release-unsigned.apk release-k
ully!"APK built and installed successf
bash: cd: /data/data/com.ter
mux/files/home/your-android-project: N
o such file or directory bash
: ./gradlew: No such file or directory
bash: ./gradlew: No such file or direc
tory Enter Passphrase for keyst
ore:

You might also like