question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash app only Release

See original GitHub issue

Description

The app work fine in debug-mode, but i generate a release apk and now work. O apk crash logo quando inicia

problem reproduction

  1. Create new react-native project ( with init)
  2. Follow setp by setp react-native-svg
  3. follow the generate-apk and use .\gradlew.bat assemblerelease
  4. install the apk with react-native run-android --variant=release
  5. run the app

Issues I’ve already looked at

https://github.com/react-native-community/react-native-svg/issues/784 https://github.com/react-native-community/react-native-svg/issues/481

react-native info

` Environment: OS: Windows 10 Node: 10.13.0 Yarn: 1.7.0 npm: 6.4.1 Watchman: Not Found Xcode: N/A Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4 `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

17reactions
mrsavaricommented, Apr 12, 2019

Try adding -keep public class com.horcrux.svg.** {*;} in proguard-rules.pro file

0reactions
nguyenvantruong17commented, Apr 21, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

My app crashes ONLY from App Store - Apple Developer
I have a new app just released the last couple of days. The app ONLY crashes when downloaded from the App Store. App...
Read more >
Android App crashes only with release APK - Stack Overflow
Android App crashes only with release APK ; try to update db version. – Anton Kazakov. Jan 14, 2018 at 20:30 ; Try...
Read more >
iOS app crashes only release build, in using Dynamic Links.
Issue I tried to use Dynamic Links in React Native Firebase, but in the release build of the iOS app only the app...
Read more >
How to debug app crash that only occurs when not ... - Reddit
Try running the app on phone in release mode instead of debug mode.
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Update App To The Last Version, The App Crash Fixer. Sometimes app-crashing is not caused by your phone, but rather the app itself....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found