How to update Gradle dependencies to their latest version

前端 未结 4 947
有刺的猬
有刺的猬 2020-12-24 06:02

Is there an easy way to get gradle to update dependencies to their latest available version?

For build reproducibility all my dependencies are defined with a version

4条回答
  •  感动是毒
    2020-12-24 06:35

    This is all I've been able to come up with. I will happily accept another answer if there is a less manual method of doing this.

    1. In Android studio I replace every dependency version with a plus example: compile 'namespace:package1:+'

    2. Sync or build the project which will cause all the dependencies to be resolved to their latest version.

    3. In Android Studio place the cursor on each dependency line in build.gradle and press alt+enter a menu pops up and you can select Replace with specific version

提交回复
热议问题