1.错误:::java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;
解决::compile('com.android.support:design:27.1.1') {
exclude group: 'com.android.support', module: 'support-v4'
}
2. gradlew app:dependencies view conflicting dependencies
3.Program type already present: android.support.v4.app.BackStackRecord$Op
AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver","sources":[{}],"tool":"D8"}
This error roughly means that V4 has duplicates, just remove it. My mistake was because there was a V4.Jar in the AutoNavi map. I only deleted it. Under normal circumstances, there are conflict problems with such V4 or V7 packages:
1. You can run the script through buildDependence to accurately locate the problem,
2. If it is a dependency package conflict, use gradlew app:dependencies to query,
3. Finally, delete or de-duplicate. '
General strategies for general problems, the actual situation may be special, you have to try in various ways.