transformClassesWithMultidexlistForDebug [英] transformClassesWithMultidexlistForDebug

查看:62
本文介绍了transformClassesWithMultidexlistForDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目运行得非常好.

My project run very good.

添加Google Analytics(分析)后,.dex文件中不允许64k,并且我已经设置了:

After i added google analytics, it did not allow 64k in .dex file and i have already set :

defaultConfig {
   multiDexEnabled true
}

但是它有下面的错误

:MainEntry:transformClassesWithMultidexlistForDebug失败 错误:任务':MainEntry:transformClassesWithMultidexlistForDebug'的执行失败. java.io.IOException:无法读取[C:\ Users \ temp2 \ android-git \ MainEntry \ build \ intermediates \ transforms \ jarMerging \ debug \ jars \ 1 \ 1f \ combined.jar](无法处理类[com/vtcpay/a/a.class](堆栈映射框中的未知验证类型[143])

:MainEntry:transformClassesWithMultidexlistForDebug FAILED Error:Execution failed for task ':MainEntry:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't read [C:\Users\temp2\android-git\MainEntry\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar] (Can't process class [com/vtcpay/a/a.class] (Unknown verification type [143] in stack map frame))

推荐答案

谢谢大家 我已经找到解决此问题的方法.我应该在以下默认配置中添加此脚本.

Thanks you everybody I have already found solution for this issue. i should add this script bellow default config.

Multidex配置需要显着增加构建处理时间,因为构建系统必须对必须在主DEX文件中包含哪些类以及可以在次级DEX文件中包含哪些类做出复杂的决定.这意味着在Multidex的开发过程中进行例行构建通常会花费更长的时间,并有可能减慢您的开发过程.

A multidex configuration requires significantly increased build processing time because the build system must make complex decisions about what classes must be included in the primary DEX file and what classes can be included in secondary DEX files. This means that routine builds performed as part of the development process with multidex typically take longer and can potentially slow your development process.

productFlavors {
        // Define separate dev and prod product flavors.
        dev {
            // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
            // to pre-dex each module and produce an APK that can be tested on
            // Android Lollipop without time consuming dex merging processes.
            minSdkVersion 21
        }
        prod {
            // The actual minSdkVersion for the application.
            minSdkVersion 14
        }
    }

这篇关于transformClassesWithMultidexlistForDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆