Today, I encountered a conflict with the support-V4 library when importing Lottie package in the project

The final solution is as follows:

  1. Start by replacing the version of the support-v4 library that already exists in the project

The compile ‘com. Android. Support: support – v4:24.0.0-1’

The compile ‘com. Android. Support: support – v4:25.3.0’

Note support – v4 library removed more than 26 version of android. Support. The v4. Animation packages

2. Use Gradle’s exclude to exclude v4 packages included in Lottie libraries

The compile (‘ com. Reality. Android: Lottie: 2.5.1 ‘) {

exclude group:'com.android.support'
Copy the code

}

Conflict resolution.