gradle返回错误我使用android-donations-lib

时间:2015-04-28 10:24:01

标签: android in-app-billing donations

我试图从android-donations-lib

添加lib捐款

我的应用程序的gradle看起来像这样:

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
//    buildToolsVersion '21.1.2'
    buildToolsVersion '20.0.0'

    defaultConfig {
        applicationId "com.listoapp.listo"
        minSdkVersion 14
    //        minSdkVersion 18
    //        targetSdkVersion 18
            targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
         release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
            'proguard-rules.pro'
        }
    }

    productFlavors {
        google {
            buildConfigField "boolean", "DONATIONS_GOOGLE", "true"
        }
        fdroid {
            buildConfigField "boolean", "DONATIONS_GOOGLE", "true"
        }
    }
}

repositories { mavenCentral() }
dependencies {
    //    compile 'com.facebook.android:facebook-android-sdk:4.0.0'
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.parse.bolts:bolts-android:1.+'
    compile fileTree(include: 'Parse-*.jar', dir: 'libs')
    compile 'com.android.support:support-v4:21.0.+'
    compile 'com.github.clans:fab:1.3.0'
    //with menus --Doron
    compile 'com.afollestad:material-dialogs:0.7.2.0'
    //Dialogs --Doron
    compile 'com.github.rey5137:material:1.1.0'
    //for new design
    compile 'com.android.support:cardview-v7:21.0.3'
    compile 'com.melnykov:floatingactionbutton:1.3.0'
    //for add participant

    compile 'com.github.medyo:fancybuttons:1.2@aar' //for fb login button
    compile project(':facebook')
    compile files('libs/ParseFacebookUtilsV4-1.9.0.jar')
    compile 'com.github.amlcurran.showcaseview:library:5.0.0'
    compile project(':libraries:Donations')
}

但是,每次我尝试运行应用程序时都会给出错误: 错误:任务':app:dexFdroidDebug'执行失败。

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2

有没有人知道这个错误是什么?

更新: 我发现了这个问题......我不得不接受我以前的计费系统的所有痕迹......无论如何,谢谢:)

0 个答案:

没有答案