Android dependency conflict resolution

Conflict resolution
1.exclude

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

        exclude group: 'com.android.support' 

}

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 (requested.group == 'com.android.support') { 

                if (!requested.name.startsWith("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: https://blog.csdn.net/random_ 7474/article/details/80703182


Read More: