-
Notifications
You must be signed in to change notification settings - Fork 133
Downloading target 22 doesn't work #70
Comments
Any idea how I could do this on Jenkins? @jakubkrolewski like you said, looks like it is downloading the dependencies but failing for some reason. Everytime i build it tries to download the dependencies and then fails with the error - failed to find target android-22 : /usr/local/android-sdk |
Same error here with circleci |
@plastiv That workaround doesn't seem to work, and it still fails a Jenkins build. |
+1 |
I witnessed this today. There are 3 identical tickets so this appears to be an oft-reported, high priority issue. @plastiv: you seem to understand this from the Gradle perspective. Can you give as much detail about the cause as you can? I will reach out to the Gradle team and see if we can build a work-around. |
@ncalexan My best guess is that due to code
from here https://github.com/JakeWharton/sdk-manager-plugin/blob/master/src/main/groovy/com/jakewharton/sdkmanager/internal/PackageResolver.groovy#L271-L274 Unfortunately, I don't see an api to skip cache and force to resolve dependencies again after downloading. https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.Configuration.html#org.gradle.api.artifacts.Configuration:resolvedConfiguration |
I was having the same issue.
before
Depending on your set up, doing "-refresh-dependencies" every time takes long time and might not be an acceptable workaround. "The --refresh-dependencies option tells Gradle to ignore all cached entries for resolved modules and artifacts. A fresh resolve will be performed against all configured repositories, with dynamic versions recalculated, modules refreshed, and artifacts downloaded." quoted from Gradle manual. |
I suspect that
or
|
What's interesting, the SDK was actually downloaded correctly, so after running the build again nothing was missing any more and the build succeed.
The text was updated successfully, but these errors were encountered: