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

APP crash when build for Production and proguard is enabled #115

Closed
P21Marcelo opened this issue May 24, 2019 · 5 comments
Closed

APP crash when build for Production and proguard is enabled #115

P21Marcelo opened this issue May 24, 2019 · 5 comments

Comments

@P21Marcelo
Copy link

when i build a android release it crashes with the following error message:

java.lang.IllegalStateException: 
  at com.horcrux.svg.t.a (Unknown Source:92)

Caused by: java.lang.NoSuchFieldException: 
  at java.lang.Class.getField (Class.java:1601)
  at com.horcrux.svg.t.a (Unknown Source:55)

that just happens when its build with proguard enabled.i know its related with react-native-svg, but since i just have it as support for line chars...
any guidance? thanks in advanced.

@fadak0828
Copy link

fadak0828 commented Jun 19, 2019

Try adding
-keep public class com.horcrux.svg.** {*;}
in your {projectRoot}/android/app/proguard-rules.pro
It was worked for me

@NitayRabi
Copy link

Hey! @fadak0828, this seems to happen with expo apps (even not in production mode) - any solution for expo users?

@BiplovQss
Copy link

Try adding
-keep public class com.horcrux.svg.** {*;}
in your {projectRoot}/android/app/proguard-rules.pro
It was worked for me

thanks. It helped

@ammarbror
Copy link

Try adding
-keep public class com.horcrux.svg.** {*;}
in your {projectRoot}/android/app/proguard-rules.pro
It was worked for me

Thanks

@flav1o
Copy link

flav1o commented Aug 24, 2022

Took me 2 days to solve this, thank you so much.
god bless you

Ldoppea added a commit to cozy/cozy-flagship-app that referenced this issue Aug 26, 2022
Enabling Proguard did make the application crash on login when calling
the transition animation

This is because react-native-svg is not compatible with Proguard

This commit excludes all react-native-svg namespaces from the Proguard
configuration

More info: indiespirit/react-native-chart-kit#115
More info: https://www.guardsquare.com/manual/configuration/examples
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this issue Aug 26, 2022
Enabling Proguard did make the application crash on login when calling
the transition animation

This is because react-native-svg is not compatible with Proguard

This commit excludes all react-native-svg namespaces from the Proguard
configuration

More info: indiespirit/react-native-chart-kit#115
More info: https://www.guardsquare.com/manual/configuration/examples
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this issue Aug 31, 2022
Enabling Proguard did make the application crash on login when calling
the transition animation

This is because react-native-svg is not compatible with Proguard

This commit excludes all react-native-svg namespaces from the Proguard
configuration

More info: indiespirit/react-native-chart-kit#115
More info: https://www.guardsquare.com/manual/configuration/examples
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this issue Sep 2, 2022
Enabling Proguard did make the application crash on login when calling
the transition animation

This is because react-native-svg is not compatible with Proguard

This commit excludes all react-native-svg namespaces from the Proguard
configuration

More info: indiespirit/react-native-chart-kit#115
More info: https://www.guardsquare.com/manual/configuration/examples
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

6 participants