• A:

    / gradLew module name: dependencies // Check the dependencies of individual modulesCopy the code
    ./gradlew :app:dependencies --configuration compile //Copy the code
  • Method 2: Use Gradle Project

  • Method 3: Install the Android Studio plug-in

    gradle view
    Copy the code

  • Way 4: If you don’t like the idea of viewing in a command line window, here’s a better way to experience it.

    Enter the following command line:

    ./gradlew build --scan
    Copy the code

    It appears as follows:

    Publishing a build scan to scans.gradle.com requires accepting the Terms of Service defined at https://scans.gradle.com/terms-of-service. Do you accept these terms? [yes, no]
    Copy the code

    Enter yes, and a web address will appear. Log in to that address

    The page also provides a conflict alert and lists libraries that reference such libraries. The effect is as follows:

summary

1. Method 1 and Method 2 are actually the same method, which can be searched

2. Mode 3 The plug-in method saves the tedious input instructions, and the disadvantage is that global search cannot be carried out

3. Mode 4 display is more beautiful and can quickly locate the dependency of conflict