0

This is in relation to rather slow build times I recently had. I used to have ~1 minute build times but now I'm getting ~4 minute ones. Upon looking around on how to reduce build times, I found this answer and I did everything that that answer advised. I also turned on "Offline Mode" for my Gradle Settings. I tried it and the build time finished under 10 seconds. However, when I started to work again and when I built the project again, it didn't seem to work any more -- I was back to my 4 minute build times.

I don't know how or why this is the case. It seems that the settings only worked once then they seemed to be discarded thereon out.

I am currently using Android Studio 2.1.2.

Edit

I ran the wrong command, here's a proper one:

I ran the command in the comments below, it gave this report:

And it's an awful long time to configure the project.

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
Razgriz
  • 7,179
  • 17
  • 78
  • 150
  • Could you run `./gradlew :android:assembleDebug --dry-run --profile` and then open generated report? the report filename will be similar to this; `build/reports/profile/profile-2016-02-02-15-39-17.html` This could give useful information to diagnose your problem. – Youngjae Oct 18 '16 at 09:16
  • @Youngjae I updated my question. – Razgriz Oct 18 '16 at 10:38
  • then, it would be good to see in `Task Execution` tab. – Youngjae Oct 18 '16 at 11:30
  • @Youngjae there wasn't actually anything in the Task Execution Tab. No tasks were listed and it totalled off at 0s. – Razgriz Oct 18 '16 at 13:02
  • hmmm.......I hardly understand why it is. – Youngjae Oct 18 '16 at 13:06
  • @Youngjae sorry about that, I realized that I ran the wrong command. I updated my post. – Razgriz Oct 19 '16 at 03:29

0 Answers0