react-native-splash-screen: java.lang.StackOverflowError (no error message)

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?

About this issue

Most upvoted comments

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.

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.

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)