【问题标题】:Unable to execute dex: Multiple dex files define Lcom/flurry/android/Constants,Conversion to Dalvik format failed [duplicate]无法执行dex:多个dex文件定义Lcom/flurry/android/Constants,转换为Dalvik格式失败[重复]
【发布时间】:2017-04-01 21:21:33
【问题描述】:

在运行 android 应用程序时出现错误

“无法执行dex:多个dex文件定义Lcom/flurry/android/Constants”和“转换为Dalvik格式失败:无法执行dex:多个dex文件定义Lcom/flurry/android/Constants”

【问题讨论】:

  • 在你的 gradle 文件中尝试 multiDexEnabled true
  • edit 包含您的 gradle 文件

标签: android


【解决方案1】:

依赖于您的应用级别 build.gradle 添加:

编译'com.android.support:multidex:1.0.0'

在默认配置中:

defaultConfig {
        multiDexEnabled = true
    }

【讨论】:

  • 这种类型的答案已经存在于堆栈中。请在评论部分提供链接而不是答案
猜你喜欢
  • 1970-01-01
  • 2014-01-25
  • 1970-01-01
  • 2013-03-05
  • 1970-01-01
  • 2013-03-20
  • 1970-01-01
  • 2013-01-22
  • 1970-01-01
相关资源
最近更新 更多