Android dependency conflict resolution

Conflict resolution

implementation('com.zhy:autolayout:1.4.5') { 

        exclude group: '' 


2.buildtoolversion,complie_ sdk_ version,target_ sdk_ Version should exceed the version of V4, V7 and other packages
3. Use the following code block to adjust the version of all support packages

configurations.all { 

        resolutionStrategy.eachDependency { DependencyResolveDetails details -> 

            def requested = details.requested 

            if ( == '') { 

                if (!"multidex")) { 

                    details.useVersion '25.0.0' 




4. Provided is added when compiling and not when packaging

Copyright notice: This is CSDN blogger random_ 7474 “in accordance with the CC 4.0 by-sa copyright agreement. Please attach the link to the original source and this notice
original link: 7474/article/details/80703182

Read More: