Duplicate entry: android/support/design/widget/CoordinatorLayout

前端 未结 1 1302
心在旅途
心在旅途 2020-12-18 02:01

I\'m trying to create a signed APK, but an error will appear at the end:

Error:Execution failed for task \':app:transformClassesWithJarMergingForRele

相关标签:
1条回答
  • 2020-12-18 02:34

    This may be due to different versions of the support library being used. Add the following in your build.gradle

    configurations.all {
       resolutionStrategy {
           force 'com.android.support:design:27.0.2'
           force 'com.android.support:support-v4:27.0.2'
           force 'com.android.support:appcompat-v7:27.0.2'
       }
    }
    
    0 讨论(0)
提交回复
热议问题