जब मैं अपने प्रोजेक्ट चलाने का प्रयास मैं इस त्रुटि हो रहा है:त्रुटि डुप्लिकेट प्रविष्टि: com/गूगल/एंड्रॉयड/ग्राम/स्थान/स्थानों/zzj.class
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/location/places/zzj.class
यहाँ है build.gradle फ़ाइल मैं
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'io.realm:realm-gradle-plugin:0.89.1'
}
}
apply plugin: "com.android.library"
apply plugin: "realm-android"
repositories {
jcenter()
}
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.android.support:appcompat-v7:23.1.1"
compile "com.android.support:cardview-v7:23.1.1"
compile "com.android.support:recyclerview-v7:23.1.1"
compile "com.android.support:design:23.1.1"
compile "com.squareup.okhttp3:okhttp:3.1.2"
compile ('com.facebook.android:facebook-android-sdk:4.9.0')
{ exclude group: 'com.android.support' }
compile ('com.googlecode.libphonenumber:libphonenumber:7.2.2')
{ exclude group: 'com.android.support' }
compile "com.pubnub:pubnub-android:3.7.6"
compile "com.google.android.gms:play-services-maps:9.0.0"
compile "com.google.android.gms:play-services-gcm:9.0.0"
compile "com.google.android.gms:play-services-location:9.0.0"
compile ('com.appyvet:materialrangebar:1.3')
{ exclude group: 'com.android.support' }
compile 'com.google.code.gson:gson:2.5'
compile "com.amazonaws:aws-android-sdk-s3:2.2.10"
compile "com.amazonaws:aws-android-sdk-core:2.2.10"
compile ('com.instabug.library:instabug:2.1')
{ exclude group: 'com.android.support' }
compile 'com.github.tony19:logback-android-core:1.1.1-4'
compile 'com.github.tony19:logback-android-classic:1.1.1-4'
compile 'org.slf4j:slf4j-api:1.7.6'
compile 'ch.acra:acra:4.8.2'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.15'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.android.support:multidex:1.0.0'
}
आपके पास डुप्लिकेट निर्भरता है। ऐसा लगता है कि आपके पास Google स्थानों के दो संस्करण एपीआई हैं। – Emmanuel
@ ईमानुअल मैं यही सोचता हूं। लेकिन, मैं सिर्फ Google Places API की एक निर्भरता का उपयोग कर रहा हूं। मैं नहीं देख सकता कि इसे डुप्लिकेट किया जा सकता है !! टर्मिनल पर – HiddenDroid
रन './gradlew: एंड्रॉइड: निर्भरता'। आप जिन अन्य पुस्तकालयों का उपयोग कर रहे हैं उनमें से एक संभवतः Google स्थल लाइब्रेरी के पुराने संस्करण पर निर्भर करता है। आपको उस पुस्तकालय को खोजने की ज़रूरत है जो निर्भरता लाती है और इससे Google स्थानों को बाहर कर देती है। – Emmanuel