TransformClassesWithJarMergingForRelease Android

TransformClassesWithJarMergingForRelease Android,第1张

概述你好每个人我有一个问题生成与 android工作室签署的apk. 我在这方面搜索了很多,但在我的情况下找不到工作的解决方案,我知道这是与重复的类输入相关的问题但是任何人都可以告诉我哪些我需要排除. 我尝试跟随的东西,但那不起作用. { exclude group: 'com.payu.custombrowser', module: 'customBrowser' } 这是生成签名apk时 你好每个人我有一个问题生成与 android工作室签署的apk.

我在这方面搜索了很多,但在我的情况下找不到工作的解决方案,我知道这是与重复的类输入相关的问题但是任何人都可以告诉我哪些我需要排除.

我尝试跟随的东西,但那不起作用.

{    exclude group: 'com.payu.custombrowser',module: 'custombrowser' }

这是生成签名apk时我得到的错误

Error:Execution Failed for task
‘:transformClassesWithJarMergingForRelease’.

com.androID.build.API.transform.transformException: java.util.zip.ZipException: duplicate entry: com/payu/custombrowser/BuildConfig.class

以下是我的build.gradle

apply plugin: 'com.androID.application'androID {compileSdkVersion 23buildToolsversion "23.0.3"uselibrary 'org.apache.http.legacy'defaultConfig {    applicationID "company.app.appname"    minSdkVersion 9    targetSdkVersion 23    multIDexEnabled true}aaptoptions {    useNewCruncher false}buildTypes {    release {        MinifyEnabled false        proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.txt'        zipAlignEnabled true    }}}dependencIEs {compile 'com.androID.support:multIDex:1.0.1'compile filetree(dir: 'libs',include: ['*.jar'])compile project(':hellochartslibrary')compile project(':custombrowser')compile project(':facebook')compile 'com.androID.support:support-v4:23.3.0'compile 'com.Google.code.gson:gson:2.4'compile 'com.Google.androID.gms:play-services:8.4.0'compile 'com.androID.support:appcompat-v7:23.3.0'

我不知道我要排除什么以解决这个问题,有人知道请帮助我.

EDIT NOTE:

If i directly run the app means without generate signed apk than its work fine there is no error log but it show me only when i’m trying to generate signed apk

解决方法 您已经使用compileTree指令引用那些jar文件,因此可能不需要所有这些编译文件条目.

此外,编译’com.Google.androID.gms:play-services:8.4.0′,你包括整个Play服务,有一些模块化版本可能有助于首先避免MultIDex.

总结

以上是内存溢出为你收集整理的TransformClassesWithJarMergingForRelease Android全部内容,希望文章能够帮你解决TransformClassesWithJarMergingForRelease Android所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1125780.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存