frankiesardo / icepick

Android Instance State made easy
Eclipse Public License 1.0
3.75k stars 208 forks source link

IcePick won't resolve in gradle #82

Closed enyciaa closed 8 years ago

enyciaa commented 8 years ago

Hi,

I'm having trouble getting IcePick from Clojar. Both these lines cause a failed to resolve error in gradle:

compile "frankiesardo:icepick:3.2.0" compile "frankiesardo:icepick-processor:3.2.0"

However I did find an old version of the library that works:

compile 'com.github.frankiesardo:icepick:2.3.6' provided 'com.github.frankiesardo:icepick-processor:2.3.6'

However this would involve using quite a dated version of the library. Is there any way round the error with the latest version of the library on Clojar?

Thanks!

frankiesardo commented 8 years ago

Hi have you added

repositories {
  maven {url "https://clojars.org/repo/"}
}

To your build.gradle file?

enyciaa commented 8 years ago

That did the trick!

My bad for not reading properly...

vladtamas commented 7 years ago

Hi,

I'm having the same issue as described above. I added maven {url "https://clojars.org/repo/"} in repositories and compile 'frankiesardo:icepick:3.2.0' in dependencies. It works with older versions of icepick as described above.

arekolek commented 7 years ago

@vladtamas Make sure you add it to the right repositories section:

buildscript {
    repositories {
        // Here is no good
    }
}
repositories {
    // Here is good:
    maven { url 'https://clojars.org/repo' }
}
MarinaEariel commented 6 years ago

Seems to be working now.