問題が発生しました:** FAILURE:例外が発生してビルドに失敗しました。 実行は、タスクに失敗しました ':アプリ:transformClassesWithJarMergingForRelease' 何が悪かったのか署名付きAPKを作成する場合:app:transformClassesWithJarMergingForRelease
- 。
com.android.build.api.transform.TransformException:java.util.zip.ZipException:
これは、リリースサイン付きのAPKでビルドしようとするときです。しかし、私はGradleでデバッグまたは同期するだけで動作します。
私はサポートのバージョニングに問題があると考えています。これは、問題が発生している依存関係をコンパイルしたことがあります。問題を突き止める正しい道が何であるか分かりません。
私は、クリーンアップして再構築を試みました。 Debug Buildでは問題ありませんが、Signed APKではこの問題が発生しています。 plivo-のJava SDKの
compile files('libs/plivo-java-3.0.9-jar-with-dependencies.jar')
compile project(':DailymotionWebSDK')
、DailyMotionWebSDKについてそのpom.xml
を見て、そのbuild.gradleを見て:その中gson依存性を含めている以下のライブラリの両方が、これはある
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// Single target that includes all FirebaseUI libraries above
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/plivo-java-3.0.9-jar-with-dependencies.jar')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:support-vector-drawable:23.4.0'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.firebaseui:firebase-ui:1.0.1'
compile 'com.android.support:recyclerview-v7:23.4.0'
testCompile 'junit:junit:4.12'
compile project(':DailymotionWebSDK')
}
apply plugin: 'com.google.gms.google-services'
これを実行する方法はありますか?もしあなたが.jarファイルを持っているなら、それを除外することは不可能と言う人もいます。除外機能を試しましたが、機能しませんでした。 – Aizen
READMEにあるように、plivo-java-3.0.9-jar-with-dependencies.jarの代わりにplivo-java-3.0.9.jarを含めるようにしてください。 'プロジェクトに競合するjarに問題がある場合はこれを使用してください。含める必要がある依存関係のリストについては、pom.xmlを参照してください.' https://github.com/plivo/plivo-java –