Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Plugin breaks with com.android.tools.build:gradle:2.0.0-alpha1 #99

Open
cypressious opened this issue Nov 23, 2015 · 50 comments
Open

Plugin breaks with com.android.tools.build:gradle:2.0.0-alpha1 #99

cypressious opened this issue Nov 23, 2015 · 50 comments

Comments

@cypressious
Copy link

Syncing project crashes with following stacktrace:

Caused by: java.lang.NoClassDefFoundError: com.android.sdklib.repository.FullRevision
    at com.jakewharton.sdkmanager.internal.PackageResolver.class$(PackageResolver.groovy)
    at com.jakewharton.sdkmanager.internal.PackageResolver.$get$$class$com$android$sdklib$repository$FullRevision(PackageResolver.groovy)
    at com.jakewharton.sdkmanager.internal.PackageResolver.resolveBuildTools(PackageResolver.groovy:66)
    at com.jakewharton.sdkmanager.internal.PackageResolver.resolve(PackageResolver.groovy:58)
    at com.jakewharton.sdkmanager.internal.PackageResolver$resolve$0.call(Unknown Source)
    at com.jakewharton.sdkmanager.internal.PackageResolver.resolve(PackageResolver.groovy:20)
    at com.jakewharton.sdkmanager.internal.PackageResolver$resolve.call(Unknown Source)
    at com.jakewharton.sdkmanager.SdkManagerPlugin$_apply_closure2_closure3.doCall(SdkManagerPlugin.groovy:38)
    at com.jakewharton.sdkmanager.SdkManagerPlugin$_apply_closure2_closure3.doCall(SdkManagerPlugin.groovy)
    at com.jakewharton.sdkmanager.SdkManagerPlugin.time(SdkManagerPlugin.groovy:45)
    at com.jakewharton.sdkmanager.SdkManagerPlugin$_apply_closure2.doCall(SdkManagerPlugin.groovy:37)
    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
    ... 59 more
@plastiv
Copy link

plastiv commented Nov 23, 2015

This project directly depends on android gradle plugin api and has to be updated everytime googlers break that.
It would be nice to cut current changes into last 1.x release before migrating to 2.x.

@orrc
Copy link
Contributor

orrc commented Nov 23, 2015

Works for me with PR #100.

@dalewking
Copy link

ETA for release with PR#100?

@zsperske
Copy link

Any ETA on this?

@plastiv
Copy link

plastiv commented Dec 1, 2015

Until release it is possible to use jitpack (replace commit sha with the latest one)
#73 (comment)

@ligi
Copy link

ligi commented Dec 8, 2015

Would be great if this could be released - jitpack works but readability of gradle files suffer

@danielgomezrico
Copy link

Im getting

Error:A problem occurred configuring project ':app'.
> Cannot cast object '23.0.2' with class 'com.android.repository.Revision' to class 'com.android.sdklib.repository.FullRevision'

and Im using:

buildscript {
  repositories {
    maven { url 'https://jitpack.io' } // sdk manager
  }

  dependencies {
    classpath 'me.tatarka:gradle-retrolambda:3.2.3'
    classpath 'com.github.JakeWharton:sdk-manager-plugin:0ce4cdf08009d79223850a59959d9d6e774d0f77'
  }
}

@dalewking
Copy link

@danielgomezrico The correct revision is 220bf7a

@danielgomezrico
Copy link

@dalewking 👍

@anuragdadheech
Copy link

Any ETA on release? weird using jitpack.

@iam1492
Copy link

iam1492 commented Jan 8, 2016

+1 weird using jitpack..

@ligi
Copy link

ligi commented Jan 8, 2016

just tagging a version would also be a good step - the upload to bintray/mavencentral is not that essential IMHO - but using the hash makes the gadle file hard to read ( or see what version one uses )

@FabianFrank
Copy link
Contributor

+1

1 similar comment
@josephmbeveridge
Copy link

+1

@jakubkrolewski
Copy link

+1
Yes, please, release a new version.

@bootstraponline
Copy link

+1

6 similar comments
@jaggernod
Copy link

+1

@phajduk
Copy link

phajduk commented Feb 19, 2016

+1

@will-nolan
Copy link

+1

@dawidhyzy
Copy link

👍

@MikeyNick
Copy link

+1

@doneill
Copy link

doneill commented Mar 2, 2016

+1

@dalewking
Copy link

C'mon Jake, I know you are busy, but it has been over 3 months. This library is used by a lot of people.

@casidiablo
Copy link

I worked around it by using jitpack.io:

repositories {
   maven { url "https://jitpack.io" }
}

dependencies {
  classpath 'com.github.JakeWharton:sdk-manager-plugin:master'
}

@ghost
Copy link

ghost commented Apr 6, 2016

👍

@thebehera
Copy link

+1
AS 2.0 has been released now

@streetsofboston
Copy link

+1 for a release fixing this issue (especially since Android 2.0 is now released in stable channel)

@artem-zinnatullin
Copy link

Just friendly reminder to +1rs: GitHub now has emoji reactions feature on each comment/issue/pr/etc. Please use it instead of +1 comments.

@Valodim
Copy link

Valodim commented Apr 8, 2016

those don't work so well for attention though. and android studio 2.0 even nudges developers to update to gradle 2.0.0. hence:

👍

@epeterson-bb
Copy link

Any chance you could release build 0.12.1 off of the commit that includes the fix for this issue? It's blocking my project's ability to upgrade to Android Studio 2.0.

@pine
Copy link

pine commented Apr 12, 2016

👍

@rongi
Copy link

rongi commented Apr 14, 2016

+1

2 similar comments
@hetang
Copy link

hetang commented Apr 17, 2016

+1

@AndreasBoehm
Copy link

+1

@RBWare
Copy link

RBWare commented Apr 19, 2016

Jitpack fix not working for me. I end up with

Error:Could not find org.rauschig:jarchivelib:0.6.0.
Searched in the following locations:
    https://maven.fabric.io/public/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.pom
    https://maven.fabric.io/public/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.jar
    https://jitpack.io/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.pom
    https://jitpack.io/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.jar
Required by:
    RBWare:app:unspecified > com.github.JakeWharton:idk-manager-plugin:master

@orrc
Copy link
Contributor

orrc commented Apr 19, 2016

@RBWare Stack Overflow would be the best place to ask such questions, rather than in an unrelated GitHub issue.

But idk-manager-plugin instead of sdk-manager-plugin?
And jcenter() doesn't appear to be in your list of repositories?

@RBWare
Copy link

RBWare commented Apr 19, 2016

SO closed my story, linking to the "jitpack" solution on another SO question. Which of course, doesn't work for me.

Per your suggestion, I've tried adding both jcenter() and mavenCentral() to list of repos. As soon as I do, I get

Error:Cause: com.android.sdklib.repository.FullRevision again.

Full addition:

buildscript {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://jitpack.io' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
        classpath 'com.github.JakeWharton:sdk-manager-plugin:master'
    }
}

@orrc
Copy link
Contributor

orrc commented Apr 19, 2016

@RBWare I don't know what "the other solution" refers to, but it doesn't make sense to use master with JitPack.

From https://jitpack.io/docs/#how-to:

Add the dependency information:

  • Group: com.github.Username
  • Artifact: Repository Name
  • Version: Release tag, commit hash or -SNAPSHOT

You should choose a recent commit hash, as listed under the "Commits" link on the JitPack page for this repo. I suppose master-SNAPSHOT should also work, but it's not a good idea to point at a moving target.

@RBWare
Copy link

RBWare commented Apr 19, 2016

This is the SO "other solution" I mentioned: http://stackoverflow.com/a/33889117/879082

master-SNAPSHOT again returns:

Error:Cause: com.android.sdklib.repository.FullRevision

I also tried using, 1d29782dd6ffa18880c8cbada748fb3dea45e7be, which is the latest commit to master, same issue.

@ligi
Copy link

ligi commented Apr 19, 2016 via email

@RBWare
Copy link

RBWare commented Apr 19, 2016

Ideally, master is what should be released. However, there are commits to master... I'd say ~28 or so, since the last release of the library in 2014. I guess I'll just try again on SO.

@dtogias
Copy link

dtogias commented Apr 26, 2016

+1. Please release a new version

@Obfuscati0n
Copy link

+1

@Malachiasz
Copy link

please release this fix

@fmatosqg
Copy link

@JakeWharton regarding your answer on #117, would you be happier if someone else takes over the maintenance/releases responsibility? If true how can we make that transition happen, if not what is the next step towards making both you and the community happier?

This is a great plugin, I think it would be sad to have it discontinued.

@ZacSweers
Copy link

Use https://github.com/tadfisher/android-sdk-updater.

@stetro
Copy link

stetro commented May 2, 2016

+1

@jayhack7
Copy link

Has anyone figured out anything concerning this problem? I feel like I'm in a Google rabbit hole...

@FabianFrank
Copy link
Contributor

I've switched to the previously mentioned android-sdk-updatet script. The downside is that it doesn't infer your dependencies, but the upside is that it runs well with the 2.0 plugin and won't break when Google changes the Android gradle plugin.

@jayhack7
Copy link

OK, I'll try that. Thank you.

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

No branches or pull requests