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:
- [details] jar conflict resolution in Maven (personal test)
- Bug resolution of 0xc0000005: access conflict occurred when reading location of 0x00000000.
- Android dependency merge rules
- CONDA reports an error: conflict package conflict
- Android solution to the conflict of calling ontouch and onclick at the same time
- Viewing Android dependency tree using gradle
- Android studio error resolution: Error:SSL peer shut down incorrectly
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- CMake_ Compiling VTK_ 9.0.0 running vtkcommoncolor DLL has access conflict
- Hash conflict and four solutions
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- On the solution of fileprovider conflict
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- Resolve Tree Conflict SVN
- Error response from daemon: Conflict: unable to delete 8598c91556dc (must be forced)
- Android Failure [INSTALL_ FAILED_ VERSION_ Downgrad] solutions
- Opencv: 0xc0000005: an access conflict occurred while reading location 0x0000000010
- Docker compose reports an error and multiple containers conflict
- Docker error response from daemon: Conflict: unable to deletexxxxx