How to check what is the latest version of a dependency to use in gradle

前端 未结 8 1719
再見小時候
再見小時候 2020-12-29 20:24

I\'ve always added dependencies like this:

dependencies {
    compile \'com.android.support:mediarouter-v7:19.+\'
}

but in the recent versi

8条回答
  •  执念已碎
    2020-12-29 20:59

    Relying on latest version is indeed a dangerous thing to do. Your build can break without you changing anything, just because some library broke backwards compatibility.

    The easiest way to know when new version of a library is out is to subscribe to new version notifications in Bintray.

    Just click on the "Watch" button on the package page and you'll get an email every time new version is out. Then you'll be able to update the dependency, test it, and only then commit the build script with the new version.

    Watch package in Bintray

提交回复
热议问题