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

前端 未结 8 1726
再見小時候
再見小時候 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:48

    As already mentioned by some other answers you should not use + in dependencies because it may lead to unpredictable builds, so its always better if you first test your builds once a new update is available.

    With android studio 2.2 and above Project Structure will show you the latest dependencies available.

    1. Activate it by going to Android Studio > Settings > Build, Execution, Deployment > Gradle > Experimental and check the Use new Project Structure dialog
    2. Then open it by going to File >Project Structure > Messages

    Original Answer

提交回复
热议问题