How should I store dependency version in variable in gradle build script without error from Android Studio?
When I make this:
def guavaVersion = '17.0'
compile "com.google.guava:guava:$guavaVersion"
I have:A newer version of com.google.guava:guava than $guavaVersion is available: 17
try this:
ext.guavaVersion = '17.0'
compile "com.google.guava:guava:$guavaVersion"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With