그냥 제 핸드폰으로 앱을 실행시킨다거나 디버깅 모드를 하면 앱 깔리고 실행이 되는데 서명된 apk 파일을 만드려면 아래와 같은 오류가 나옵니다. 따로 충돌될만한 부분이 없는데도 ..이러네요 ㅠ
Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/net/ConnectivityManagerCompat.class
아래는 제 build.gradle 입니다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "blackcat.test"
minSdkVersion 15
targetSdkVersion 23
versionCode 8
versionName "1.4"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
jumboMode = true
javaMaxHeapSize "4g"
}
productFlavors {
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'com.android.support:recyclerview-v7:+'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'com.github.ParkSangGwon:TedPermission:v1.0.12'
compile 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT'
compile 'net.i2p.android.ext:floatingactionbutton:1.10.0'
}