Lint: “Newer Library Versions Available” when using variables

前端 未结 3 1390
生来不讨喜
生来不讨喜 2021-02-20 04:10

I have a project with 3 sub-projects. I want the 3 sub-projects to use the same dependencies versions so I factored all the versions in the root build.gradle:

相关标签:
3条回答
  • 2021-02-20 04:26

    In Android Studio, go to the Analyze menu and choose Run Inspection by Name -> Newer Library Versions Available. Choose Whole Project and wait for your results.

    0 讨论(0)
  • 2021-02-20 04:34

    This is not an exact answer to the question. I had the same concerns some time ago (had declared global vars and referred to them from build.gradle files).

    I've found gradle-versions-plugin library, which resolved my concerns.

    It will prompt with detailed info after ./gradlew dependencyUpdates

    0 讨论(0)
  • 2021-02-20 04:37

    The easiest way I have found (AS 3.6.3) is to open the project structure with Ctrl+Alt+Shift+S where there is a Suggestions tab:

    0 讨论(0)
提交回复
热议问题