数周以来,我一直在尝试解决此问题,当尝试在android studio中编译apk时,我收到此消息,指出错误。
“ ...重复的jar条目[com / test / cracklib / BuildConfig.class]” 怎么解决?
dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
/* Customize PubNub Library and OKHttp*/
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'javax.annotation:javax.annotation-api:1.2-b01'
implementation 'com.squareup.okio:okio:1.13.0'
/* Customize PubNub Library and OKHttp*/
/* RetroFit related libraries*/
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit:converter-gson:2.0.0-beta1'
/* RetroFit related libraries*/
/* Android support libraries */
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:exifinterface:27.1.1'
/* Android support libraries */
/* Google services related libraries */
implementation 'com.google.android.gms:play-services-gcm:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.maps.android:android-maps-utils:0.5'
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
/* Google services related libraries */
// implementation 'com.facebook.android:facebook-android-sdk:4.18.0'
implementation 'com.facebook.android:facebook-login:[4,5)'
implementation 'com.splunk.mint:mint:5.0.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.kyleduo.switchbutton:library:1.4.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
//implementation 'com.stripe:stripe-android:2.1.0'
implementation 'com.stripe:stripe-android:8.0.0'
implementation('com.twitter.sdk.android:twitter:3.3.0@aar') {
transitive = true;
}
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.braintreepayments.api:braintree:2.14.2'
implementation 'com.braintreepayments.api:drop-in:3.3.0'
implementation 'com.paymaya:sdk-android:0.8.0'
implementation 'co.omise:omise-android:2.6.4'
implementation 'org.apache.commons:commons-lang3:3.6'
implementation 'com.xendit:xendit-android:1.1.0'
implementation('io.github.sac:SocketclusterClientJava:1.7.5') {
exclude group: 'org.json', module: 'json'
}
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'org.joda:joda-convert:1.3.1'
implementation 'com.karumi:dexter:4.2.0'
implementation project(':crackerapp')
}
apply plugin: 'com.google.gms.google-services'