gpt4 book ai didi

java - Gradle 构建错误

转载 作者:搜寻专家 更新时间:2023-11-01 07:52:22 25 4
gpt4 key购买 nike

我一直收到以下错误:

Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

这是我目前的依赖。我一直在想办法解决这个错误,但我就是想不通。任何建议或帮助将不胜感激。

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.vokanovich.myapplication"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile ("com.magnet.mmx:magnet-mmx-client-android:1.9.1@aar") {
transitive=true
}
compile 'com.google.android.gms:play-services:8.1.0'
compile 'com.google.android.gms:play-services-base:7.8.0'
compile 'com.google.android.gms:play-services-gcm:7.8.0'
compile('com.mikepenz:materialdrawer:4.3.7@aar') {
transitive = true
}

compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
}

这是我的另一个build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}


allprojects {
repositories {
jcenter()
mavenLocal()
maven {
url "https://repo.magnet.com/artifactory/public"
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

最佳答案

问题是它超过了 65k 个方法。通过应用以下解决方案解决了该问题:https://stackoverflow.com/a/31759781/1371041

关于java - Gradle 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33206709/

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