Skip to main content

Featured post

How to Insert line break in Text component in React Native

Hi, I was developing an application in react native.I have to handle lots of text data in this small react native application.I have used  Text component in react native many times. While working on this application,i had a requirement to display some text content with line breaks.I will explain it clearly with an example.I want to display a text as shown below  Welcome Please subscribe my channel I wrote react native code as shown below <View> <Text> Welcome Please subscribe my channel </Text> <View> When i run these lines of code,It will display text as shown below Welcome Please subscribe my channel   - instead of displaying in two lines with line break,it displays in a single line.So i have to find a solution to insert line break in Text component in React Native.After lots of research,i found a clean solution as shown below <View> <Text> Welcome{"\n"} Please subscribe my channel </Text> <View> Here ...

Java lang out of memory Java heap space appmergeExtDexDebug Error Android Studio in React Native Fixed





Dear friends,In one of my project,I was installing @stripe/stripe-react-native npm package in my React Native project.When i do gradle sync in the project, after installing  stripe-react-native npm package,it synced successfully.But when i tried to install the app in my android emulator,i got the  Java lang out of memory error java heap space error appmergeExtDexDebug  in  stripe-react-native npm package in React Native  .So i think it will be helpful if i write about, how i fixed Java lang out of memory or java heap space appmergeExtDexDebug error  in  React Native.



So in order to fix Java lang out of memory error java heap space error appmergeExtDexDebug, we need to add some lines of codes in gradle.properties file in android application folder of react native project.As i  shown in the above video,add those lines of codes in the gradle.properties file.Then first you have to do gradle sync process again.Once gradle sync is successfully completed,you can start install the app in android emulator


Yes,as i showed in my video tutorial,it will fix the error Java lang out of memory error java heap space error  appmergeExtDexDebug.So you can start working with  @stripe/stripe-react-native npm package.For me,the problem started when i installed  @stripe/stripe-react-native npm package.So i fixed Java lang out of memory error or  java heap space error by adding those lines in gradle.properties file.


appmergeExtDexDebug
gradle build
Android Emulator