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 Gradle Sync is time-consuming #110559
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
The following is normal task of sync on version 2.10. If I delete generateLockfiles, sync task execution is getting faster. I found 2.10 sync task execute many extra dependency task. |
Is this time increase only being observed recently or has it been happening since #83067 was introduced? Also, does this occur on every run or just initial runs, perhaps after dependency changes?
|
@GaryQian Thank you for response
Yes, especially when we remove generateLockfiles task, this problem does not exist.
Sorry, can you explain it in more detail? Will this cause my compilation to fail?
Yeah, thanks |
No, not in the short term. In the future, you may have to fix your project as dependencies update. See https://docs.gradle.org/current/userguide/dependency_locking.html Perhaps we don't have to call |
#112723 has a draft pr but tests fail. This might be a good starting point if someone wanted to take it over. |
In our multiple projects upgrading from 2.0 to 2.10, we found that Android Gradle increased significantly. Some projects went from 10s to 5 minutes.
The discovery was introduced by this change: #83067. The generateLockfiles task is introduced, and after we delete the task, the time is back to normal.
So I want to know:
The text was updated successfully, but these errors were encountered: