facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.18k stars 24.32k forks source link

App crash in android 5.1 #25053

Closed YajanaRao closed 5 years ago

YajanaRao commented 5 years ago

Configuration

React Native Environment Info: System: OS: Windows 10 CPU: (4) x64 Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz Memory: 2.43 GB / 7.91 GB Binaries: npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD Watchman: 4.9.0 - C:\Shortcut\watchman.EXE IDEs: Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5199772

react-native-track-player react-native-track-player: "^1.1.4",

Issue

React native application is crashing in Micromax canvas mega 4g device which is running android 5.1 There is no error in react-native log-android nor in logcat. adb logcat E is attached as a file logcat.txt

Code

https://github.com/YajanaRao/Serenity/tree/update

YajanaRao commented 5 years ago

I got this issue resolved by adding below line of code to AndroidManifest.xml

  android:hardwareAccelerated="false"
      android:largeHeap="true"

Here is what the complete block looks like:

<application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:hardwareAccelerated="false"
      android:largeHeap="true"
      android:theme="@style/AppTheme">