React Native Android Build with new architecture enabled taking too long

Naveen Kumar Jain S 41 Reputation points
2022-08-23T15:11:16.397+00:00

I have a react native project with newArchitecure enabled (i.e new NativeModule system (TurboModule) and the new Renderer (Fabric)). I tried to build this project in Azure DevOps pipeline using gradle build for generating android .apk.

But the Build is taking too long( i.e more than an hour, which auto-cancelled after 1 hour as longest build allowed was 1 hr in Azure DevOps settings. Hence it din't get completed).
Even when I try to build locally also it is taking too long to build with the new architecture. Where as if i disable the newArchitecure (flag in android/gradle.properties) the build completes around 20 mins.

My question was is this issue faced by anyone who is working with react native? and if yes is there any solution to increase build speed of react native android app in Azure DevOps pipeline?

Community Center Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,426 Reputation points Moderator
    2022-08-25T08:40:51.947+00:00

    Hi @Naveen Kumar Jain S ,

    Azure DevOps is currently not supported in this Microsoft Q&A platform. These are the products that are currently supported in this Microsoft Q&A platform. You may ask Azure DevOps related questions in this developer community / via this Azure DevOps services support.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.