-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 crashing with fill property on SVG #1061
Comments
You have to add:
in proguard-rules.pro (app) |
This solved the problem, thank you! |
save my life |
Tks you so much ^^ |
thanks a lot .. |
It's work! Tks! 🚀 |
Great, it works like a charm 👍 |
thanks. It worked. |
after adding this crash is gone but i got Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. java.io.FileNotFoundException: ......android/app/keep public class com.horcrux.svg.** {* (No such file or directory) error in release mode. |
thanks @fgagneten It worked for me. |
My life also dude :) |
It's 2021 you have safe my life. |
It's almost 2022, you still have saved my life. |
It needs patience and tears— you still have saved my life, thank you dude! |
You still have saved my life. Thanks dude! |
It's 2022, you still have saved my life too, thanks! :-) |
This is a lifesaver!! |
Worked for me!!! |
It's almost 2023 and this saved my life as well. |
It's mid 2022 and you saved another soul :) thanks a ton! |
you saved my entire life, spent dozen of hours trying to get a solution for this, thanks |
please how do you solve this issue in Expo managed workflow? |
After employing this the app worked fine on actual devices (Galaxy M02 and XIAOMI MI A2). But the crashes persist on the emulator (Pixel 4). |
Saved my life too. :) 👍 |
Saved my life too. :) :* |
This solved mine 2022 still worked hurray |
Oh my gosh! Nice! It worked very well! |
@drb1 have you managed to solve this error? I've got the same error after adding the --keep public class com.horcrux.svg |
Have you resolve your problem, I have the same error |
Saved my life Feb 2023 🚀 |
Suggested solution worked like charm .... had to spend a lot of time on it. Just in case if anyone else is still facing same issue and is using some other libraries as well :: -keep class com.swmansion.reanimated.** { ; } |
This is very interesting, but how did you identify all the libraries that were needed? |
Save me. Just curious why in the document not mention this :( |
My app uses vis.js in WebView. It was crashing for this reason on one mobile(Samsung M31, Android 12) but on other phones, it worked well. On adding this in proguard-rules.pro, it stopped crashing in that mobile but it became very slow in drawing vis.js network diagrams. But in other mobiles, it runs pretty smooth. Any ideas on why this happened? |
For anyone using expo, add this to your app.config.js/app.json:
|
One line that saves. Thanks! |
Big thanks to you ! 🤩 |
omg god bless you my friend it really works |
You save my day. Tks a lot |
Thanks for the answer it helps me lot..... |
Bug
Hello,
When I run the application with
react-native run-android
everything goes well, but when I try to generate an apk for testing as soon as I open some screen with the SVG (that contains the fill property) it crashes.I ran it with the
adb logcat
and this is the error message I'm getting:Environment info
React native info output:
Library version: 9.5.3
I initially installed the version 9.5.1, and upgraded to try to solve this problem but it didn't
Steps To Reproduce
assembleRelease
...
Describe what you expected to happen:
Reproducible sample code
This is the SVG making the app crash (if I remove the fill prop and build my apk it runs normally)
The text was updated successfully, but these errors were encountered: