Unable to refresh gradle dependencies - AS 0.2.1

88 views
Skip to first unread message

Austyn Mahoney

unread,
Jul 23, 2013, 2:24:38 PM7/23/13
to adt...@googlegroups.com
I found this issue while trying to test different versions of compile dependencies. I am unable to refresh my build.gradle dependencies in Android Studio to use a lower version number. I have tried Sync Project with Gradle Files but it does not change the version listed under External Libraries. It also does not change the .iml or .idea/libraries/_LIBRARY_.xml.

If you have this in build.gradle

dependencies {
    compile 'com.google.code.gson:gson:2.2.4'
}

Then change it to

dependencies {
    compile 'com.google.code.gson:gson:2.2.2'
}

Nothing is updated in the IDE. I am not sure if it changes the version included in the apk.

I have also ran gradlew --refresh-dependencies from the command line, and then re-opened AS. This did not change the version to the one listed in build.gradle.


AS 0.2.1 (July 18th build)
Windows 7
JRE 1.7.0_25

Austyn Mahoney

unread,
Jul 23, 2013, 3:36:12 PM7/23/13
to adt...@googlegroups.com
Just did some more tests on this. Upgrading the dependency works just fine, the problem occurs when you try to downgrade it.
Reply all
Reply to author
Forward
0 new messages