1

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/maps/GoogleMapOptions.class알 수없는 빌드 문제 (응용 프로그램 : transformClassesWithJarMergingForDebug가)

Gradle sync started Gradle sync completed Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies] Gradle build finished in 16s 492ms Executing tasks: [:app:assembleDebug] Gradle build finished with 1 error(s) in 8s 883ms

다음은 애플 리케이션 Gradle을을 구축입니다 (모듈 : 응용 프로그램)을

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion "24.0.2" 

defaultConfig { 
    applicationId "com.accordhk.vexus" 
    minSdkVersion 19 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
    multiDexEnabled true 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'),   'proguard-rules.pro' 
    } 
} 
sourceSets { 
    main { 
     aidl.srcDirs = ['src/main/java'] 
     jniLibs.srcDirs = ['src/main/jniLibs'] 
    } 
} 
} 

dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1' 
compile 'com.android.support:appcompat-v7:23.4.0' 
compile 'com.squareup.picasso:picasso:2.5.2' 
compile 'com.facebook.android:facebook-android-sdk:4.6.0' 
compile 'com.google.firebase:firebase-messaging:9.0.1' 
compile 'com.isseiaoki:simplecropview:1.1.4' 
compile 'com.google.android.gms:play-services-maps:9.0.1' 
compile files('libs/PIA_FrameWork.jar') 

compile files('libs/gson-2.0.jar') 
compile files('libs/locSDK_3.3.jar') 
compile files('libs/xUtils-2.6.14.jar') 
compile 'eu.the4thfloor.volley:com.android.volley:2015.05.28' 
compile files('libs/iport.jar') 
} 

Gradle을 동기화 완료되었지만 Gradle을 빌드 위의 인용구에서 언급 한 오류를 가지고 있지만, 이 문제를 해결하는 방법을 모르겠습니다. 아무도 내게이 문제가 발생하는 몇 가지 해결책을 줄 수 있습니까? 고맙습니다.

답변

0

당신의 build.gradle를 수정하십시오로

안드로이드 {

compileSdkVersion 24

buildToolsVersion "24.0.2"

}

defaultConfig {

targetSdkVersion 24 

}

종속 {

컴파일 'com.android.support:appcompat-v7:24.0.2'

}

+0

가 답장을 보내 주셔서 감사합니다. > 경우 (dx.additionalParameters = -하지만 여전히 같은 문제가 T_T – ng2b30

+0

시도 build.gradle에 'afterEvaluate { tasks.matching { it.name.startsWith ('덱스') } .each를 {이 추가 DX를 얻을 수 = NULL) { 의 dx.additionalParameters = '--multi - 덱스'] 한다} else {+ = '--multi - 덱스' dx.additionalParameters }}}' –

+0

감사합니다. 여전히 변화 없음 – ng2b30