-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build when app contains .gz file #393
Comments
Note, the issue has high impact, when your app contains node_modules, some of them, like semver, contain .gz files |
This issue is no longer relevant, it is related to ant, but from CLI 1.3.0, we are using Gradle for Android builds. |
I'm still getting this even with Gradle. |
Hi @gausie |
I'm getting "Zip add failed":
This file was added to my assets folder. If I change the file to a .mp3 extension then it works, but I need the .gz file to be used in my app. |
Its an aapt problem. |
In case the app contains .gz file, build for android fails on package-resources step:
-package-resources:
[aapt] Creating full resource package...
[aapt] Unable to add 'd:\Work\scratch\app1\platforms\android\assets\app\app\app.js.gz': file already in archive (try '-u'?)
[aapt] ERROR: unable to process assets while packaging 'd:\Work\scratch\app1\platforms\android\bin\app1.ap_'
[aapt] ERROR: packaging of 'd:\Work\scratch\app1\platforms\android\bin\app1.ap_' failed
BUILD FAILED
d:\Program Files\android_sdk\tools\ant\build.xml:932: The following error occurred while executing this line:
d:\Program Files\android_sdk\tools\ant\build.xml:950: null returned: 1
Steps to reproduce:
tns create app1
cd app1
tns platform add android
cd app/app/
tns build android
The text was updated successfully, but these errors were encountered: