테스트 앱에 내 Samsung A5를 사용하고 프로젝트가 내 전화에서 제대로 작동하지만 다른 전화에서는 작동하지 않습니다. 그래서 내 프로젝트에서 Generate signed APK
하고 싶습니다.서명 된 APK 오류를 생성합니다. java.util.zip.ZipException
Error:Execution failed for task '::transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/daimajia/androidanimations/library/BaseViewAnimator;
내가 오류를 봤 이러한 코드는 그 오류 제거 :
multiDexEnabled true
및
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/notice.txt'
}
을하지만 지금은 다른 예외가있다 :
하지만 예외 오류가 발생했습니다Error:Execution failed for task ':transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/daimajia/androidanimations/library/BaseViewAnimator.class
그의 라이브러리는 내가 사용하는 라이브러리 일 수도 있지만 어떻게 처리해야할지 모르겠다. 아래 build.gradle
에 모든 라이브러리입니다 :
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
//for compiling card view
compile 'com.android.support:cardview-v7:23.0.0'
compile 'com.android.support:recyclerview-v7:23.0.0'
//for sticky header
compile 'com.github.carlonzo.stikkyheader:core:0.0.3-SNAPSHOT'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.melnykov:floatingactionbutton:1.0.7'
compile 'com.ogaclejapan.smarttablayout:library:[email protected]'
compile 'com.ogaclejapan.smarttablayout:utils-v4:[email protected]'
compile 'me.drakeet.materialdialog:library:1.3.1'
compile files('libs/volley.jar')
compile 'com.daimajia.easing:library:[email protected]'
compile 'com.daimajia.androidanimations:library:[email protected]'
//Sweet Alert Dialog
compile 'cn.pedant.sweetalert:library:1.3'
compile 'org.apmem.tools:layouts:[email protected]'
}