当前位置: 首页 > 知识库问答 >
问题:

Android Studio Build失败,出现异常执行任务“:app:dexdebug”失败

翟博雅
2023-03-14

>

  • 错误:任务“:app:dexdebug”执行失败。

    com.android.ide.common.Process.processException:org.gradle.Process.internal.execexception:Process“command”C:\Program Files(x86)\Java\JDK1.8.0\bin\java.exe“已完成,退出值为非零2

    尝试:使用--info或--debug选项运行以获取更多日志输出。

    Build.Gradle文件:

        apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 21
        buildToolsVersion "22.0.0"
    
        defaultConfig {
            applicationId "com.appdomain.appname"
            minSdkVersion 15
            targetSdkVersion 21
        }
    
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            }
        }
        }
    
        dependencies {
            compile 'com.android.support:support-v4:19.1.+'
            compile 'com.google.guava:guava:10.0.1'
            compile 'com.google.android.gms:play-services:+'
            compile 'com.android.support:appcompat-v7:21.0.3'
            compile files('libs/gdata-client-1.0.jar')
            compile files('libs/gdata-client-meta-1.0.jar')
            compile files('libs/gdata-contacts-3.0.jar')
            compile files('libs/gdata-contacts-meta-3.0.jar')
            compile files('libs/gdata-core-1.0.jar')
            compile files('libs/libGoogleAnalyticsServices.jar')
            compile files('libs/mpandroidchartlibrary-1-7-4.jar')
            compile files('libs/recyclerview.jar')
        }
    
  • 共有1个答案

    王佐
    2023-03-14

    我找到了解决办法

    换一下就行了

    compile 'com.android.support:support-v4:19.1.+'
    

    compile 'com.android.support:support-v4:22.0.0'
    
    compile 'com.android.support:appcompat-v7:21.0.3'
    
    compile 'com.android.support:appcompat-v7:22.0.0'
    
    defaultConfig {
        applicationId "com.sendpulse.sendpulse"
        minSdkVersion 15
        targetSdkVersion 21
        multiDexEnabled true
    
    }
    
     类似资料: