gpt4 book ai didi

android - 执行失败 ':app:transformClassesWithDexForDebug'-超出了GC开销限制

转载 作者:行者123 更新时间:2023-12-03 06:08:28 27 4
gpt4 key购买 nike

gradle有问题,我的应用程序无法编译,并在“0:Messages”选项卡上显示此错误,这是我在build.gradle(app)上的代码

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "app.nucleo.com.doctoc"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
incremental = true;
preDexLibraries = false
javaMaxHeapSize "4g" // 2g should be also OK
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(path: ':backend', configuration: 'android-endpoints')
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:appcompat-v7:24.0.0-alpha2'
compile 'com.android.support:support-v4:24.0.0-alpha2'
compile 'com.android.support:design:24.0.0-alpha2'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
compile 'com.google.appengine:appengine-api-1.0-sdk:1.9.28'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
}

屏幕截图:

http://i.stack.imgur.com/6BTaw.png

有什么可以帮助我的吗?

最佳答案

从您的依赖项中删除:

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

并从 hereplay-services中寻找您还需要什么。

关于android - 执行失败 ':app:transformClassesWithDexForDebug'-超出了GC开销限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36705666/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com