android - 无法合并dex-Android Studio 3.0.1

标签 android android-studio gradle build.gradle android-studio-3.0

更新了gradle,我想这就是搞砸了。
enter image description here

我的gradle版本是

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        mavenCentral()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}

allprojects {
    repositories {
        mavenCentral()
        google()
    }
}

ext {
    compileSdkVersion = 22
    buildToolsVersion = "23.0.1"

    minSdkVersion = 14
    targetSdkVersion = 23
}

项目ParseStarterProject中的 build.gradle
enter image description here
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '26.0.2'

    defaultConfig {
        applicationId "com.parse.starter"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation 'com.google.android.gms:play-services-maps:11.8.0'
    api 'com.android.support:appcompat-v7:23.4.0'
    api 'com.parse.bolts:bolts-tasks:1.3.0'
    api 'com.parse:parse-android:1.13.0'
    api 'com.google.android.gms:play-services:9.4.0'
    compile 'com.android.support:multidex:1.0.0'
}

编辑:外部库,请看一下,这是引起问题的原因吗?
enter image description here

最佳答案

更新您的Google Play服务可能会对您有所帮助。
最新的是 11.8.0

com.google.android.gms:play-services:11.4.0

清理重建您的项目

关于android - 无法合并dex-Android Studio 3.0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48752388/

相关文章:

android - 格式化@BindView代码

android - Jenkins :来自 Gradle 2.2.2.pom com.android.tools.build:gradle:2.2.2

gradle - Travis CI无法使用Gradle包装器解压缩Gradle 1.11

android - 数据序列化时不能超过10240KB [android-workmanager]

java - 使用 AsyncTask 加载位图图像

android - 通知未在特定时间和日期显示

android - Gradle 同步失败 : Could not determine artifacts for com. edwardvanraak :MaterialBarcodeScanner:0. 0.6-ALPHA:由于早期错误而跳过

Gradle 在 Groovy 中的 "assemble -x test"

Android错误膨胀类SwipeRefreshLayout

android - Bluetooth LE Android 平板电脑无法与 Lego Boost Move Hub 连接