AndroidJS it is a node package to convert a web project into an APK. It only requires nodejs and the JDK to work. But in Termux it can't build the APK. The log is the following:
$ androidjs b
--release= false
(node:16316) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
copying assets ...
updating app name...
Setting app version ...
Version Code: 1000032
Version Name: 1.0.0
updating theme ...
Using SDK: 2.3.0
Building Apk ...
non zero exit code: failed to build apk
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_117095993120653068321135023830087336858.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 33, --version-code, 1000032, --version-name, 1.0.0, --no-version-vectors, -F, /data/data/com.termux/files/usr/tmp/APKTOOL4096063572657258932.tmp, -e, /data/data/com.termux/files/usr/tmp/APKTOOL6957194567619474062.tmp, -0, arsc, -I, /data/data/com.termux/files/home/.androidjs/cache/1.apk, -S, /data/data/com.termux/files/home/.androidjs/cache/androidjs-sdk/res, -M, /data/data/com.termux/files/home/.androidjs/cache/androidjs-sdk/AndroidManifest.xml]
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_117095993120653068321135023830087336858.tmp[1]: ELF: inaccessible or not found
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_117095993120653068321135023830087336858.tmp[2]: syntax error: unexpected ')'
$
What steps will reproduce the bug?
Install nodejs and openjdk-17: apt install nodejs openjdk-17 -y.
Problem description
AndroidJS it is a node package to convert a web project into an APK. It only requires nodejs and the JDK to work. But in Termux it can't build the APK. The log is the following:
What steps will reproduce the bug?
apt install nodejs openjdk-17 -y
.npm install -g androidjs-builder
.androidjs init test-app
cd test-app
androidjs b
<- Here's the error.What is the expected behavior?
Create an apk
System information