Android build is failing with error java.lang.StackOverflowError (no error message)

See original GitHub issue

What happened?

Created an example project by using the following commands:

yarn add react-native-test-app --dev
yarn init-test-app

Building the android app using yarn android is throwing following error: image

I have not done any changes to configaration.

Version

1.6.17

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows

System Information

System:
    OS: Linux 5.18 Pop!_OS 22.04 LTS
    CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
    Memory: 153.68 MB / 15.47 GB
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 14.20.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 6.14.8 - ~/Projects/segmented-control/node_modules/.bin/npm
    Watchman: Not Found
  SDKs:
    Android SDK:
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: AI-212.5712.43.2112.8609683
  Languages:
    Java: 1.8.0_312 - /usr/bin/javac
    Python: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.4 => 0.63.4
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

yarn add react-native-test-app --dev yarn init-test-app cd example yarn android

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tido64commented, Oct 9, 2022

Hi, it looks like you’re using react-native 0.63, which was just dropped in 2.0. The 1.x series should still work, but I’ve just realized that we broke 0.63 when we added support for TurboModule support in 1.5, so you should really use 1.4.6.

0reactions
YajanaRaocommented, Oct 13, 2022

@tido64 git clean -dfqz fixed the issue. Thank you for pointing out. I am closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.StackOverflowError (no error message) when I run ...
In my case, every morning flutter run throws different random errors. These commands solve all issues without changing anything.
Read more >
How to Fix java.lang.StackOverflowError in Java - Rollbar
The java.lang.StackOverflowError is a runtime error which points to serious problems that cannot be caught by an application. The java.lang.
Read more >
StackOverflowError while importing project into Android Studio
I'm using Android Studio, Gradle Plugin, composite builds and sometimes build crashes with StackOverflowError. Steps to Reproduce. It happens ...
Read more >
Gradle: "java.lang.StackOverflowError (no error message)" on ...
Gradle: "java.lang.StackOverflowError (no error message)" on a build with error. In a simple Gradle project, compile erroneous code, for example:.
Read more >
minifyReleaseWithR8 throws java.lang.StackOverflowError ...
Build started to fail after updating the gradle plugin to 4.0.0. Works fine if I downgrade to com.android.tools.build:gradle:3.6.0. Full error:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found