Talaiot
Talaiot copied to clipboard
Android Studio gradle sync cause a problem with requestedTasks
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:
- Open Android Studio
- Click sync now
Workaround #82 merged to master
Snapshot published at jfrog:
maven ( url = uri("http://oss.jfrog.org/artifactory/oss-snapshot-local") )
1.0.1-SNAPSHOT
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).
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?
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.
hi @tagantroy looks like we will have some good news for 3.6:
