Extremely slow app build

Asked

Viewed 133 times

0

Hi, I’m having a serious problem with the time of Gradle Build an app. I did a lot of research, changed Gradle settings, disabled crashlytics, activated daemon, build cache, offline work and configuration on demand and nothing, build takes about 13 minutes. Is there any other way that could reduce that time?

  • 1

    You tried to reinstall everything ? It is not the simplest way, but in any case, when it is not a known problem sometimes it works, even without knowing why later. rs

  • 1

    Do you talk about reinstalling IDE and Gradle? It has been done yes.

  • @RBZ Just to complement this statement, there are in fact several scenarios where reinstalling is easier than trying to correct. haha

  • @Isac For sure ! rs Reinstall, restart, etc ! rs For those who do not have time and can do, it is the tool number 1 ! rs

  • @RBZ really in many cases is better even, unfortunately in this situation has not solved :/

  • try to create a new project and build to see if it takes too long. If it doesn’t take long, look for what might be, maybe too many dependencies on build.gradle, or some incorrect variable in AndroidMainfest.xml until you have clues and find out what it is

  • Without knowing the structure of the project it is difficult to track the cause. Already tried to follow the tips of documentation? In more extreme cases the Gradle profiler can help. If you are working with several modules, understand the difference amid api and implementation can also help.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.