【问题标题】:When i try to build my android studio project: Gives me below error当我尝试构建我的 android studio 项目时:给我以下错误
【发布时间】:2017-02-28 01:40:15
【问题描述】:

Here I have attached the screenshot 请注意,此错误发生在我将 firebase 添加到我的应用后。

Error:Error convert bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defined Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;

【问题讨论】:

  • 你使用支持注释吗?
  • 您是否尝试过清理和重建项目?
  • 清理并重建项目,但没有运气
  • 我已经回答了你的问题,你可以在下面查看
  • 不,它不起作用:(

标签: android android-studio gradle android-gradle-plugin build.gradle


【解决方案1】:

我在使用 Google Play 服务时遇到了同样的问题,请按照以下方法解决此问题。

只需解析以下代码:

compile 'com.google.android.gms:play-services:9.4.0'

收件人:

compile ('com.google.android.gms:play-services:9.4.0') {
    exclude module: 'support-v4'
}

【讨论】:

    猜你喜欢
    • 2023-03-22
    • 2023-03-02
    • 2021-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-20
    • 1970-01-01
    相关资源
    最近更新 更多