Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build On New Architecture Stuck For Android & Never Succeed #33657

Closed
ErHarinderSingh opened this issue Apr 16, 2022 · 8 comments
Closed

Build On New Architecture Stuck For Android & Never Succeed #33657

ErHarinderSingh opened this issue Apr 16, 2022 · 8 comments
Labels
Platform: Android Android applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@ErHarinderSingh
Copy link

ErHarinderSingh commented Apr 16, 2022

Description

Screenshot 2022-04-16 at 13 50 51

Version

Tried On 0.68.0 & 0.68.1

Output of npx react-native info

Screenshot 2022-04-16 at 13 57 50

Steps to reproduce

I have MacBook Air 2017
npx react-native init demo
cd demo
newArchEnabled=true in gradle.properties file
enable hermes
npx react-native run-android

Snack, code example, screenshot, or link to a repository

No response

@ErHarinderSingh
Copy link
Author

I can verify that this issue is with MacBook Air 2017. I checked on MacBook Pro M1 2020 and it's working fine with new architecture.
It means it is device specific.

@ErHarinderSingh
Copy link
Author

I have wait and after 30 minutes debug build compiled now successfully. Now trying release build

@ErHarinderSingh
Copy link
Author

Release build almost takes 40 minutes to build & install.
Unfortunately app is crashed after launching.

@ErHarinderSingh
Copy link
Author

Crash Log shows this:
D/SoLoader: libhermes.so not found on /data/data/

@brunoducattii
Copy link

Our company is working for 3 weeks trying to enable the new architecture following all the instructions provide by the community. We tried on several Macs and Pcs. Unfortunately we are in eternal looping with those errors.

@ErHarinderSingh
Copy link
Author

ErHarinderSingh commented Apr 19, 2022

@joaotmachado I solved everything; only start up app crash issue yet to resolved. It happens in both enabled/disabled hermes release builds. Debug builds are fine. First time build are taking too much time. 42 minutes on MacBook Air 2017. Is this new architecture? With lots of errors? Lots of conflicts? Lots of dependency errors? 🤦🏻‍♂️😞

@raajnadar
Copy link

@joaotmachado I solved everything; only start up app crash issue yet to resolved. It happens in both enabled/disabled hermes release builds. Debug builds are fine. First time build are taking too much time. 42 minutes on MacBook Air 2017. Is this new architecture? With lots of errors? Lots of conflicts? Lots of dependency errors? 🤦🏻‍♂️😞

Are you trying on fresh project or existing upgraded project?

@cortinico
Copy link
Contributor

Just a heads up here: the new architecture is building Native Code (C++ code) which is causing your build time to increase.

This is (sadly) expected. If you build on a MacBook Air, you will most likely experience longer build time.

Generally the first build is going to take longer, but subsequent builds will be faster as there is no need to rebuild everything.

We also wrote a page to help you speed up your build speed here:
https://reactnative.dev/docs/build-speed

Is this new architecture? With lots of errors? Lots of conflicts? Lots of dependency errors? 🤦🏻‍♂️😞

As we wrote extensively on the website, the new architecture is still experimental. We're collecting feedback, like yours, to understand where to prioritize our efforts as we refine the new architecture for everyone.

Closing as this is essentially resolved.

@cortinico cortinico added Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) and removed Needs: Triage 🔍 labels May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Android applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

5 participants