2017-10-06 3 views
0

Ich habe ein Problem auf AppLovin.Applovin Fehler - Doppeleintrag: com/applovin/adview/AdViewController.class

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/applovin/adview/AdViewController.class

Mein gradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 
    useLibrary 'org.apache.http.legacy' 

defaultConfig { 
    applicationId "in.earnpaytm.dhankubair" 
    minSdkVersion 16 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    multiDexEnabled true 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 
dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 

compile 'com.google.android.gms:play-services:9.6.1' 
compile 'cn.pedant.sweetalert:library:1.3' 
compile 'com.android.support:design:25.3.1' 
compile 'com.android.support:support-v4:25.3.1' 
compile 'com.mcxiaoke.volley:library:1.0.18' 
compile 'org.apache.httpcomponents:httpclient-android:4.3.5' 
compile 'com.google.android.gms:play-services-gcm:9.6.1' 
compile 'com.google.android.gms:play-services-ads:9.6.1' 
compile 'com.google.android.gms:play-services-fitness:9.6.1' 
compile 'com.google.android.gms:play-services-wearable:9.6.1' 
compile 'com.applovin:applovin-sdk:7.3.2' 
compile 'com.github.paolorotolo:appintro:4.1.0' 



testCompile 'junit:junit:4.12' 


compile 'com.android.support:multidex:1.0.1' 

compile 'com.google.firebase:firebase-messaging:9.6.1' 


} 
dependencies { 
    compile 'com.google.android.gms:play-services-ads:9.6.1' 
} 
dependencies { 
    compile 'com.google.android.gms:play-services-auth:9.6.1' 
} 
dependencies { 
    compile 'com.google.android.gms:play-services-gcm:9.6.1' 
} 

apply plugin: 'com.google.gms.google-services' 

Mein Manifest

<meta-data android:name="applovin.sdk.key" android:value="3Uwn4udUbwnsMOvbmpDJ7IEegaoOPqmSIgDNZrtd061wiokw5rCKUuwGGJ50nNg_mFqdPaFPgHKO32J9uVTM" /> 
     <activity android:name="com.applovin.adview.AppLovinInterstitialActivity" android:configChanges="orientation|screenSize"/> 
     <activity android:name="com.applovin.adview.AppLovinConfirmationActivity" android:configChanges="orientation|screenSize"/> 

Und ich habe zwei AppLovin sdk

1.applovin-sdk-7.3.2 
2.applovin-sdk-7.3.2-javadoc 

Helfen Sie mir, dieses Problem zu lösen!

+0

Haben Sie auch ein Glas für applovin? –

+0

@GabrieleMariotti Ja! –

+0

Dann ist es das Problem. Sie fügen dieselbe Bibliothek zweimal hinzu. Löschen Sie diese .jars aus Ihrem libs-Ordner. Überprüfen Sie die Antwort unter –

Antwort

2

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/applovin/adview/AdViewController.class

Es bedeutet, dass Sie zweimal die gleichen Klassen hinzufügen.

Laut mit Ihrem Kommentar:

Do you have also a jar for applovin?
@GabrieleMariotti Yes!

Da Sie verwenden:

compile 'com.applovin:applovin-sdk:7.3.2' 

löschen. Gläser bezogen auf Applovin Bibliothek von Ihrem libs Ordner

+1

Vielen Dank für Ihr Feedback, Mein Problem ist gelöst. –

1

Es sieht so aus, als ob Sie die AppLovin-Bibliothek mehrmals hinzufügen. entweder entfernen Sie diese Zeile aus Ihrer gradle.build Datei:

compile 'com.applovin:applovin-sdk:7.3.2' 

oder diese .jars aus Ihrem libs Ordner löschen:
AppLovin-sdk-7.3.2.jar
AppLovin-sdk-7.3.2-javadoc .jar

Sie brauchen nur das eine oder das andere, aber nicht beides.

+0

@applovinjosh Vielen Dank für Ihr Feedback –

Verwandte Themen