Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Studio gradle sync cause a problem with requestedTasks #79

Open
tagantroy opened this issue Jul 30, 2019 · 6 comments
Open

Android Studio gradle sync cause a problem with requestedTasks #79

tagantroy opened this issue Jul 30, 2019 · 6 comments

Comments

@tagantroy
Copy link
Contributor

tagantroy commented Jul 30, 2019

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
cdsap added a commit that referenced this issue Jul 31, 2019
Report gradleSync instead of many generateDebugSources tasks as a requestedTask(Workaround for #79)
@tagantroy
Copy link
Contributor Author

Workaround #82 merged to master

@cdsap
Copy link
Owner

cdsap commented Jul 31, 2019

Snapshot published at jfrog:

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

1.0.1-SNAPSHOT

@tagantroy
Copy link
Contributor Author

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 tagantroy reopened this Jul 31, 2019
@cdsap
Copy link
Owner

cdsap commented Aug 2, 2019

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?

@tagantroy
Copy link
Contributor Author

tagantroy commented Aug 6, 2019

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.

@cdsap
Copy link
Owner

cdsap commented Nov 5, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants