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

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

    Avoid to use + in version declare.

    You can try andle to check if dependency out of date, also the build tool version and sdk version.

    Simple three step:

    1. install:

        $ sudo pip install andle
    

    2. set sdk:

        $ andle setsdk -p 
    

    3. update depedency:

        $ andle update -p  [--dryrun] [--remote]
    

    --dryrun: only print result in console

    --remote: check version in jcenter and mavenCentral

提交回复
热议问题