JakeWharton / sdk-manager-plugin

DEPRECATED Gradle plugin which downloads and manages your Android SDK.
Apache License 2.0
1.41k stars 142 forks source link

When using support library 19.1.+ or 20.+, It is not downloaded #40

Closed omniuni closed 9 years ago

omniuni commented 9 years ago

When I try to compile on my computer which already has the SDK and newer versions of the support library, it works fine. If I go to a computer and begin the process there, it downloads the Android SDK, and then fails unable to match 19.1.+ or 20.+.

I'm not sure, but this may be a larger problem with Gradle. I have never been able to get Gradle to download the support dependency for anything past 19.0.+

JakeWharton commented 9 years ago

This has already been fixed on master it just hasn't been released yet. I'm really hoping to find some free time this weekend or early next week to do a proper release. Sorry for inconvenience in the mean time!

omniuni commented 9 years ago

Oh! That's awesome! Thanks again for the great work, it looks like this is going to save me a ton of time and frustration.

omniuni commented 9 years ago

Hi, I tried the updates from Saturday this morning. I realize this may be a work in progress, but after updating the plugin and the build target and compile SDK to 20:

[workspace] $ /var/lib/jenkins/jobs/ANDROID_Project/workspace/gradlew clean build
Download http://repo1.maven.org/maven2/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.pom
Download http://repo1.maven.org/maven2/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.jar
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:20.+.
     Required by:
         workspace:app:unspecified
   > Could not find any version that matches com.android.support:appcompat-v7:20.+.
     Required by:
         workspace:app:unspecified
   > Could not find any version that matches com.android.support:gridlayout-v7:20.+.
     Required by:
         workspace:app:unspecified
nkeskinov commented 9 years ago

I can confirm this was a problem in version 0.10.x as well.

omniuni commented 9 years ago

@nkeskinov, I believe it is a known problem in 0.10.x, the commits from Saturday target 12.x and from my brief glance over the code, appears to add support for SDK 20.

francisdb commented 9 years ago

see also #38 where the same issue is discussed

Sy1v4in commented 9 years ago

Hi @JakeWharton You made a very great plugin but this bug is really annoying. Is there a chance you make quickly a release to publish the fix? Thanks in advance. In all cases, thank you for your job!