首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android :app:DexDebug错误

Android :app:DexDebug错误
EN

Stack Overflow用户
提问于 2015-11-27 02:14:52
回答 1查看 328关注 0票数 0

我想将这个图书馆添加到我的项目中,但是当我将依赖项添加到build.gradle文件时,有以下错误:

代码语言:javascript
复制
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.7.0_79\bin\java.exe'' finished with non-zero exit value 2

受抚养人:

代码语言:javascript
复制
compile ('com.github.florent37:materialviewpager:1.1.3@aar'){
        transitive = true
    }

我的应用程序build.gradle:

代码语言:javascript
复制
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '22.0.1'
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        applicationId "ua.nau.edu.NAU_Guide"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven { url "https://jitpack.io" }
    mavenCentral()
    jcenter()
}

dependencies {
    compile project (':vksdk_library')
    compile project (':MaterialDesign')
    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
    compile 'com.mikepenz:fontawesome-typeface:4.4.0.1@aar'
    compile "com.android.support:appcompat-v7:23.1.0"
    compile 'com.android.support:recyclerview-v7:23.1.0'
    compile 'com.android.support:cardview-v7:23.1.0'
    compile 'com.android.support:support-annotations:23.1.0'
    compile 'com.google.android.gms:play-services:8.1.0'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile 'com.sothree.slidinguppanel:library:3.1.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.github.clans:fab:1.6.1'

    compile('com.github.afollestad.material-dialogs:core:0.8.5.0@aar') {
        transitive = true
    }

    compile ('com.github.ozodrukh:CircularReveal:1.1.1@aar') {
        transitive = true;
    }

    compile('com.mikepenz:materialdrawer:4.3.0@aar') {
        transitive = true
    }

    compile ('com.github.florent37:materialviewpager:1.1.3@aar'){
        transitive = true
    }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-11-27 02:35:35

转到app/build.gradle并添加:

代码语言:javascript
复制
android {
   .....

       dexOptions {
        javaMaxHeapSize "4g"
    }
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33949399

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档