
我在这方面搜索了很多,但在我的情况下找不到工作的解决方案,我知道这是与重复的类输入相关的问题但是任何人都可以告诉我哪些我需要排除.
我尝试跟随的东西,但那不起作用.
{ 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' 我不知道我要排除什么以解决这个问题,有人知道请帮助我.
解决方法 您已经使用compileTree指令引用那些jar文件,因此可能不需要所有这些编译文件条目.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
此外,编译’com.Google.androID.gms:play-services:8.4.0′,你包括整个Play服务,有一些模块化版本可能有助于首先避免MultIDex.
总结以上是内存溢出为你收集整理的TransformClassesWithJarMergingForRelease Android全部内容,希望文章能够帮你解决TransformClassesWithJarMergingForRelease Android所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)