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.gradledependencies {
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