Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – React Native App keeps closing after opening it without crashing

Posted on November 11, 2022 By

Solution 1 :

The best way to trace this will be using adb, either print adb log OR connect your device with release build via usb, open your project in Android studio, run app & check logs

For reference
https://medium.com/@impaachu/react-native-android-release-build-crash-on-device-14f2c9eacf18

Solution 2 :

It seems there might be many reasons for this happening. But still sharing what solved my crash.

I had enabled proguard in my release apk, I just disabled it.

In [project-root]/android/app/build.gradle file,

I changed from

def enableProguardInReleaseBuilds = true

to

def enableProguardInReleaseBuilds = false

Problem :

I published my .apk file using the link https://reactnative.dev/docs/signed-apk-android and I installed it on my android device. When I open it, it immediately crashes.

Can anyone please help?

READ  [FIXED] android - java.lang.IndexOutOfBoundsException error when using ItemTouchHelper in recyclerView?
Powered by Inline Related Posts
Android Tags:android, apk, react-native

Post navigation

Previous Post: [FIXED] android – Build not succed in flutter
Next Post: [FIXED] kotlin – Opening the application from the results google.com, always directs to the home page of WebView Android

Related Posts

[FIXED] xamarin.android – 32Feet.net Compatibility with Xamarin Android Watch Android
[FIXED] android – could not get version from cmake.dir Android
[FIXED] android – Jetpack Compose DrawImage compilation error Android
[FIXED] Android FragmentScenario – Unable to find package androidx.fragment.app.testing Android
[FIXED] android – Error while calling Navigation Components while using ViewPager 2 Android
[FIXED] android – ConstraintLayout spread views inside with same width Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme