Build On New Architecture Stuck For Android & Never Succeed
See original GitHub issueDescription
Version
Tried On 0.68.0 & 0.68.1
Output of npx react-native info
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
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Android Studio gradle takes too long to build - Stack Overflow
In Android Studio go to File -> Settings -> Build, Execution, ... added a new dependency in your gradle you will have to...
Read more >Android project won't finish building - Microsoft Q&A
When I build the app, all the project dependencies build just fine in ... gets stuck on building the android project and it...
Read more >Device administration overview - Android Developers
This document is intended for developers who want to develop enterprise solutions for Android-powered devices. It discusses the various features provided by the ......
Read more >Request location updates - Android Developers
A change to the device's configuration, such as a change in screen orientation or language, can cause the current activity to be destroyed....
Read more >Restrictions on starting activities from the background
Android 10 (API level 29) and higher place restrictions on when apps can start activities when the app is running in the background....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.
@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? 🤦🏻♂️😞