androidjs-builder icon indicating copy to clipboard operation
androidjs-builder copied to clipboard

error: Resource entry Animation.Design.BottomSheetDialog already has bag item android:windowNoTitle.

Open ida opened this issue 4 years ago • 3 comments

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*

ida avatar May 18 '21 14:05 ida

same error how to fix it?

dhvitish avatar Nov 18 '21 13:11 dhvitish

yes i have same error but i am user this command

androidjs build -f

mominiqbal1234 avatar May 07 '22 09:05 mominiqbal1234

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*

yes i have same error but i am user this command

androidjs build -f

mominiqbal1234 avatar May 07 '22 18:05 mominiqbal1234