android-js / androidjs

Platform to build android app using node js
MIT License
466 stars 109 forks source link

Failed to build apk #305

Open BanDroid opened 1 year ago

BanDroid commented 1 year ago

Describe the bug i am trying to build helloworld sample project, i already update androidjs module to the latest and still doesn't work.

To Reproduce Steps to reproduce the behavior:

  1. open the project.
  2. run androidjs build in terminal.

Expected behavior build success

Additional context

Logs --release= false Downloading: https://github.com/android-js/androidjs-sdk/archive/master.zip Data: 35046 KB :██████████████████████████████████████████████████ √ copying assets ... updating app name... Setting app version ... Version Code: 1 Version Name: 1.0 updating theme ... theme attribute not found in package.json 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.itsaky.androidide/files/usr/tmp/brut_util_Jar_145501890408370006001323179798287731618.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.itsaky.androidide/files/usr/tmp/APKTOOL1266990774831550043.tmp, -e, /data/data/com.itsaky.androidide/files/usr/tmp/APKTOOL7347363094707872198.tmp, -0, arsc, -I, /data/data/com.itsaky.androidide/files/home/.androidjs/cache/1.apk, -S, /data/data/com.itsaky.androidide/files/home/.androidjs/cache/androidjs-sdk/res, -M, /data/data/com.itsaky.androidide/files/home/.androidjs/cache/androidjs-sdk/AndroidManifest.xml] W: /data/data/com.itsaky.androidide/files/usr/tmp/brut_util_Jar_145501890408370006001323179798287731618.tmp[1]: ELF: inaccessible or not found W: /data/data/com.itsaky.androidide/files/usr/tmp/brut_util_Jar_145501890408370006001323179798287731618.tmp[2]: syntax error: unexpected ')'

Love-Kogasa commented 2 months ago

Same error in Termux Very well error, wasting three hours of my relax time. Haha :(