react-native-zoom-us icon indicating copy to clipboard operation
react-native-zoom-us copied to clipboard

error when add shrinkResources = true in build.gradle

Open nguptaesaral opened this issue 1 year ago • 2 comments

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"

nguptaesaral avatar Nov 17 '23 12:11 nguptaesaral

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

viettranbhtech avatar Dec 08 '23 03:12 viettranbhtech

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

mieszko4 avatar Jan 22 '24 00:01 mieszko4