react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

java.lang.StackOverflowError (no error message)

Open mmasood7 opened this issue 2 years ago • 15 comments

Run react-native info in your project and share the content.

What react-native-splash-screen version are you using?

What platform does your issue occur on? (Android/iOS/Both)

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
  2. Interesting logs

Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?

mmasood7 avatar Oct 15 '22 10:10 mmasood7

same issue for me

sudharsanvishnu avatar Oct 17 '22 11:10 sudharsanvishnu

same here, any solution?

wolframus avatar Jan 26 '23 18:01 wolframus

image Anyhelp

brian-musarafu avatar Jan 27 '23 09:01 brian-musarafu

same issue for me, any solution?

VoHoangThien avatar Feb 02 '23 09:02 VoHoangThien

Same here

AaronMBMorse avatar Feb 18 '23 21:02 AaronMBMorse

Guys I fix like that

android\gradle.properties

org.gradle.jvmargs=-Xmx2048m -Xms2048m -XX:MaxMetaspaceSize=1024m -XX:ThreadStackSize=4096 -XX:CompilerThreadStackSize=4096

Then clean gradle and rebuild pls.

https://stackoverflow.com/a/71796288/20358783

myagizmaktav avatar Mar 23 '23 11:03 myagizmaktav

@myagizmaktav unfortunately did not help. Also after cleaning gradle with ./gradlew clean

challenge-me-237 avatar Apr 11 '23 16:04 challenge-me-237

@myagizmaktav unfortunately did not help. Also after cleaning gradle with ./gradlew clean

@challenge-me-237 Make your pc ram empty on this build time. And start react native with --reset-cache flag.

myagizmaktav avatar Apr 11 '23 19:04 myagizmaktav

I had the same problem, but the java version was the cause. first check if the java version is 11 using 'java -version' in terminal. (I'm sorry if I spoke awkwardly because I'm not good at English)

hangyeol17 avatar May 05 '23 00:05 hangyeol17

same issue. it's my first time developing on react-native. and i got this problem. If there is any good solutions, please tag me

emmarrat avatar May 16 '23 11:05 emmarrat

I found out that this problem also happens when I'm running more than one server. There is a conflict with the previous server.

  1. restart your pc or using npm start --reset-cache will solve most of the problems.
  2. wipe data in android studio virtual device option.

I'm sorry if I answered strangely because I'm not good at English.

hangyeol17 avatar May 17 '23 09:05 hangyeol17

Guys I fix like that

android\gradle.properties

org.gradle.jvmargs=-Xmx2048m -Xms2048m -XX:MaxMetaspaceSize=1024m -XX:ThreadStackSize=4096 -XX:CompilerThreadStackSize=4096

Then clean gradle and rebuild pls.

https://stackoverflow.com/a/71796288/20358783

Sometimes your computer or your virtual device's ram is not enough on building for this reason this error is given. if you use virtual devices improve ram to device on settings. Secondly, I enter ca script to package.json "ca": "cd android && ./gradlew clean && ./gradlew --stop && npm cache clean --force && cd .. && yarn start --reset-cache", When I take this error I start this script. And restart again.

myagizmaktav avatar May 17 '23 10:05 myagizmaktav

@myagizmaktav I love you

hangyeol17 avatar May 19 '23 00:05 hangyeol17

Guys I fix like that android\gradle.properties org.gradle.jvmargs=-Xmx2048m -Xms2048m -XX:MaxMetaspaceSize=1024m -XX:ThreadStackSize=4096 -XX:CompilerThreadStackSize=4096 Then clean gradle and rebuild pls. https://stackoverflow.com/a/71796288/20358783

Sometimes your computer or your virtual device's ram is not enough on building for this reason this error is given. if you use virtual devices improve ram to device on settings. Secondly, I enter ca script to package.json "ca": "cd android && ./gradlew clean && ./gradlew --stop && npm cache clean --force && cd .. && yarn start --reset-cache", When I take this error I start this script. And restart again.

But if I do not have separate directories for android/ios and use app.json instead of it. How can i clean that grandle?

emmarrat avatar May 19 '23 04:05 emmarrat

I had the same problem, but the java version was the cause. first check if the java version is 11 using 'java -version' in terminal. (I'm sorry if I spoke awkwardly because I'm not good at English)

Thanks a lot. Switching to java version 11 fix this for me

agavitalis avatar Dec 11 '23 01:12 agavitalis