Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

Android Studio gradle sync cause a problem with requestedTasks

Open tagantroy opened this issue 5 years ago • 6 comments

When you run Gradle sync in AndroidStudio you will see a very long line of requested tasks(in our case it is 10k characters). It contains a lot of generateDebugSources tasks for each module in the project. As a workaround, we can check tasks names diff.txt Reproduce:

  1. Open Android Studio
  2. Click sync now

tagantroy avatar Jul 30 '19 05:07 tagantroy

Workaround #82 merged to master

tagantroy avatar Jul 31 '19 03:07 tagantroy

Snapshot published at jfrog:

      maven ( url = uri("http://oss.jfrog.org/artifactory/oss-snapshot-local") )

1.0.1-SNAPSHOT

cdsap avatar Jul 31 '19 03:07 cdsap

Hello @cdsap looks like this workaround handles this problem only partially. Probably we need to have a limit for requestedTasks or submit two values one is full requestedTasks string and one with limited length(for grafana).

tagantroy avatar Jul 31 '19 09:07 tagantroy

hi @tagantroy if you have a moment, how you can I reproduce this issue, I mean how are you checking the requested tasks with run Gradle sync?

cdsap avatar Aug 02 '19 01:08 cdsap

Hi @cdsap, after any modification in build.gradle files android studio shows "sync now" button after you click it it will run a lot of generateDebugSources tasks(1 per module). The problem here - integration between Gradle and android studio. Probably it would be great to have a limit for requested tasks. For example by default send all of them and config to send only first N tasks instead of the whole list.

tagantroy avatar Aug 06 '19 05:08 tagantroy

hi @tagantroy looks like we will have some good news for 3.6:

Screen Shot 2019-11-05 at 10 30 54 AM

cdsap avatar Nov 05 '19 18:11 cdsap