Open
Description
When building an app (androidjs build
) which was initialized with the static-template, got this error:
--release= false
copying assets ...
updating app name...
Setting app version ...
Version Code: 1000032
Version Name: 1.0.0
updating theme ...
Using SDK: 1.0.0
Building Apk ...
non zero exit code: failed to build apk
W: /home/user/.androidjs/cache/sdk-static/res/values/styles.xml:13: error: Resource entry Animation.Design.BottomSheetDialog already has bag item android:windowNoTitle.
W: /home/user/.androidjs/cache/sdk-static/res/values/styles.xml:12: Originally defined here.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_3474084176971001494.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 30, --version-code, 1000032, --version-name, 1.0.0, --no-version-vectors, -F, /tmp/APKTOOL17136024997602195816.tmp, -e, /tmp/APKTOOL2630776605754782716.tmp, -0, arsc, -I, /home/user/.androidjs/cache/1.apk, -S, /home/user/.androidjs/cache/sdk-static/res, -M, /home/user/.androidjs/cache/sdk-static/AndroidManifest.xml]
Looking into the referenced file "styles.xml" and line 13 showed a doubled entry, so I removed one, but when building the app again, the file was overwritten.
Could solve this by removing the static-files and its zipped archive: rm -rf ~/.androidjs/cache/sdk-static*