我在AppLovin上有问题。
错误:任务':app:transformClassesWithJarMergingForDebug'.执行失败 com.android.build.api.transform.TransformException: java.util.zip.ZipException:重复条目: com/applovin/adview/AdViewController.class
My 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'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"/>和我有两个applovin
1.applovin-sdk-7.3.2
2.applovin-sdk-7.3.2-javadoc帮我解决这个问题!
发布于 2017-10-06 07:36:22
com.android.build.api.transform.TransformException: java.util.zip.ZipException:重复条目: com/applovin/adview/AdViewController.class
这意味着您正在中添加两倍于相同类的。
根据你的评论:
你还有给applovin的罐子吗? @加布里-马里亚洛蒂是的!
由于您正在使用:
compile 'com.applovin:applovin-sdk:7.3.2'从文件夹中删除与applovin库相关的.jars
发布于 2017-10-06 07:16:54
看起来您要多次添加AppLovin库。要么从gradle.build文件中删除这一行:
compile 'com.applovin:applovin-sdk:7.3.2'或者从libs文件夹中删除这些.jars:
applovin-sdk-7.3.2.jar
applovin-sdk-7.3.2-javadoc.jar
你只需要一个或另一个,而不是两者都需要。
https://stackoverflow.com/questions/46599293
复制相似问题