Skip to content
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

error when add shrinkResources = true in build.gradle #318

Open
nguptaesaral opened this issue Nov 17, 2023 · 2 comments
Open

error when add shrinkResources = true in build.gradle #318

nguptaesaral opened this issue Nov 17, 2023 · 2 comments

Comments

@nguptaesaral
Copy link

Hi,
after adding this lib my project size increased from 58MB to 670MB. to reduce the size, i followed the instruction as given in README.md

but now i am not able to build the release apk. it is throwing the following error

`Execution failed for task ':app:shrinkReleaseRes'.

A failure occurred while executing com.android.build.gradle.internal.transforms.ShrinkProtoResourcesAction
ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.`

i am using
"react-native": "0.72.4", "react-native-zoom-us": "^6.18.0"

@viettranbhtech
Copy link

I got the same issue, "react-native": "0.71.10", "react-native-zoom-us": "^6.18.1"

@mieszko4
Copy link
Owner

Looks like we need to update the guide on shrinking - https://github.com/mieszko4/react-native-zoom-us/blob/e2fe546f2ffe1992cb6ed4bc779897e28a436718/docs/SIZE-REDUCTION-TIPS.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants