1

我通过编译编译组将音频与视频合并:'org.bytedeco',名称:'javacv',版本:'1.1',一切正常。

但是当我尝试compile 'com.google.android.gms:play-services:8.4.0'用它编译时,它给出了这个错误

错误:任务“:app:dexDebug”执行失败。com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' 完成非零退出值 2

构建.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'

    defaultConfig {
        applicationId "com.app.id"
        minSdkVersion 14
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    sourceSets.main {
        jni.srcDirs = []
        jniLibs.srcDir 'src/main/jniLibs'
    }
}

dependencies {
    compile group: 'org.bytedeco', name: 'javacv', version: '1.1'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.google.android.gms:play-services:8.4.0'
}
4

0 回答 0