添加库后无法编译项目

时间:2015-04-29 16:46:06

标签: android

我今天已经添加了一个库(几乎与gith相同,但是来自开发人员分支,其中几乎没有变化,我想使用这两个库)

修复完所有内容后,我尝试运行我的项目,并收到以下错误:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 2

我的gradle文件是:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.marian.digimusicstream"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile("org.restlet.jse:org.restlet.ext.httpclient:2.1.2") {
        exclude group: 'org.restlet', module: 'jse'
        exclude group: 'org.restlet.ext', module: 'ss1'
    }

    android {
        packagingOptions {
            exclude 'META-INF/DEPENDENCIES.txt'
            exclude 'META-INF/LICENSE.txt'
            exclude 'META-INF/NOTICE.txt'
            exclude 'META-INF/NOTICE'
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/DEPENDENCIES'
            exclude 'META-INF/notice.txt'
            exclude 'META-INF/license.txt'
            exclude 'META-INF/dependencies.txt'
            exclude 'META-INF/ASL2.0'
            exclude 'META-INF/services/org.restlet.engine.ClientHelper'
        }
    }
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'net.koofr:java-koofr:1.2.8'
    compile 'org.apache.httpcomponents:httpclient:4.3.5'
    compile 'org.restlet.jse:org.restlet.ext.jackson:2.1.2'
    compile 'com.github.dmytrodanylyk.android-process-button:library:1.0.3'
    compile 'com.rengwuxian.materialedittext:library:1.8.3'
    compile 'com.github.navasmdc:MaterialDesign:1.+@aar'
    compile 'com.google.android.gms:play-services:7.0.0'
    compile 'com.android.support:recyclerview-v7:21.0.+'
    compile project(':..:ExoPlayer:library')
    compile project(':..:ExoPlayerdev:libraryDev')
}

直到现在我还在使用库,但今天我添加了libraryDev

并在设置中:

include ':app', ':..:ExoPlayer:library', ':..:ExoPlayerdev:libraryDev'

我从android studio中添加其他项目的库,直到现在我在android studio中运行了ExoPlayer但是exoPlayerdev没有那可能是问题吗?

0 个答案:

没有答案
相关问题