I work with versions of some versions of the SNAPSHOT library in Android Studio.
The problem is that Gradle seems to be using a cached version of these libraries, rather than updating a new updated version .
I tried using something like this in my Gradle script, but it does not work.
dependencies { compile ('myGroupId:myArtifactId:XYZ-SNAPSHOT'){ changing=true } }
The only workaround that seems to work is to remove the ~/.gradle/caches and then re-sync the project in Android Studio. Of course, this is not a good solution.
How can we work with snapshots?
android android-studio android-gradle build.gradle gradle
Gabriele mariotti
source share