Android Studio Gradle错误:使用Ion koush lib执行任务':app:dexDebug'的执行失败

忍者钙铁矿

我想在Android Studio中使用koush的Ion Lib。但是,当我同步gradle文件中的库并尝试运行该应用程序后,会发生奇怪的错误。

我的想法是,离子库不接受我的gradle文件中的其他库。

Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAdsLite902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuth902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAuthBase902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesCast902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesDrive902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesFitness902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGames902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesGcm902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentity902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIid902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMaps902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesNearby902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPanorama902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTagmanager902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTagmanagerApi902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesVision902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWallet902Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesWearable902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalytics902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuth902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthCommon902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAuthModule902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseConfig902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCrash902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseDatabase902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseDatabaseConnection902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseIid902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseMessaging902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseStorage902Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseStorageCommon902Library UP-TO-DATE
:app:prepareComKoushikduttaAsyncAndroidasync218Library UP-TO-DATE
:app:prepareComKoushikduttaIonIon218Library UP-TO-DATE
:app:prepareComRengwuxianMaterialedittextLibrary214Library UP-TO-DATE
:app:prepareComSpecyciResidemenu16Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:collectDebugMultiDexComponents UP-TO-DATE
:app:packageAllDebugClassesForMultiDex UP-TO-DATE
:app:shrinkDebugMultiDexComponents UP-TO-DATE
:app:createDebugMainDexClassList UP-TO-DATE
:app:dexDebug
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
6 errors; aborting
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_51\bin\java.exe'' finished with non-zero exit value 1
Information:BUILD FAILED

我的Gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "sample.test.soft"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.rengwuxian.materialedittext:library:2.1.4'
    compile 'com.specyci:residemenu:1.6+'
    compile 'com.koushikdutta.ion:ion:2.1.8'
    compile 'com.koushikdutta.async:androidasync:2.1.8'
}

在我的gradle文件中,我用版本号替换了ion和androidasync的“ +”号。

阿琼签署

首先用以下命令编译构建

编译'com.android.support:multidex:1.0.1'

编译'com.google.android.gms:play-services:+'

在您的AndroidManifest.xml中添加以下行android:name

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:name="android.support.multidex.MultiDexApplication"
    >

并且在您的build.gradle中还添加

dexOptions {
    //incremental = true;
    preDexLibraries = false
    javaMaxHeapSize "4g"
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

错误:-在Android Studio中执行任务':app:dexDebug'失败

来自分类Dev

在Android Studio上执行任务':app:dexDebug'执行失败

来自分类Dev

Android Studio 执行任务':app"dexDebug 失败

来自分类Dev

Android Studio:错误:任务':app:dexDebug'的执行失败

来自分类Dev

Android Studio构建失败-任务':app:dexDebug'的执行失败

来自分类Dev

错误:更新:执行任务':app:dexDebug'失败。com.android.ide.common.process.ProcessException

来自分类常见问题

Android Studio:Gradle-构建失败-任务':dexDebug'的执行失败

来自分类Dev

错误:将项目从Eclipse导入Android Studio后,任务':app:dexDebug'的执行失败

来自分类Dev

Gradle错误-任务':app:dexDebug'的执行失败

来自分类Dev

Android:任务“:app:dexDebug”的执行失败

来自分类Dev

Android Studio构建失败,出现异常任务':app:dexDebug'的执行失败

来自分类Dev

错误:任务':app:dexDebug'的执行失败

来自分类Dev

错误:任务':app:dexDebug'的执行失败

来自分类Dev

错误:任务':app:dexDebug'的执行失败

来自分类Dev

从Eclipse导入到Android Studio无法运行后,任务':app:dexDebug的执行失败”

来自分类Dev

Android Studio执行失败,无法执行任务compilefreeDebugKotlin

来自分类Dev

Android:Facebook app任务app.dexDebug的执行失败

来自分类常见问题

错误:任务':app:dexDebug'的执行失败。com.android.ide.common.process.ProcessException

来自分类Dev

joda-time或joda-time-android错误:任务':app:dexDebug'的执行失败

来自分类Dev

Android Studio 执行任务“:app:mergeDebugResources”失败,用户名中有特殊字符

来自分类Dev

Android:任务“:dexDebug”的执行失败

来自分类Dev

任务':app:preDexDebug'的Android Studio执行失败

来自分类Dev

错误:任务':app:dexDebug'的执行失败。Parse.com

来自分类Dev

react-native run-android失败,并出现以下错误:任务':app:dexDebug'的执行失败

来自分类Dev

模块依赖性导致错误:Gradle:Android Studio中的任务“:app:preDexDebug”的执行失败

来自分类Dev

任务':app:dexDebug'的执行失败。com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException

来自分类Dev

Gradle:执行任务失败

来自分类Dev

错误:任务':app:processDebugResources'android的执行失败

来自分类Dev

毕加索导致任务':app:dexDebug'执行失败

Related 相关文章

  1. 1

    错误:-在Android Studio中执行任务':app:dexDebug'失败

  2. 2

    在Android Studio上执行任务':app:dexDebug'执行失败

  3. 3

    Android Studio 执行任务':app"dexDebug 失败

  4. 4

    Android Studio:错误:任务':app:dexDebug'的执行失败

  5. 5

    Android Studio构建失败-任务':app:dexDebug'的执行失败

  6. 6

    错误:更新:执行任务':app:dexDebug'失败。com.android.ide.common.process.ProcessException

  7. 7

    Android Studio:Gradle-构建失败-任务':dexDebug'的执行失败

  8. 8

    错误:将项目从Eclipse导入Android Studio后,任务':app:dexDebug'的执行失败

  9. 9

    Gradle错误-任务':app:dexDebug'的执行失败

  10. 10

    Android:任务“:app:dexDebug”的执行失败

  11. 11

    Android Studio构建失败,出现异常任务':app:dexDebug'的执行失败

  12. 12

    错误:任务':app:dexDebug'的执行失败

  13. 13

    错误:任务':app:dexDebug'的执行失败

  14. 14

    错误:任务':app:dexDebug'的执行失败

  15. 15

    从Eclipse导入到Android Studio无法运行后,任务':app:dexDebug的执行失败”

  16. 16

    Android Studio执行失败,无法执行任务compilefreeDebugKotlin

  17. 17

    Android:Facebook app任务app.dexDebug的执行失败

  18. 18

    错误:任务':app:dexDebug'的执行失败。com.android.ide.common.process.ProcessException

  19. 19

    joda-time或joda-time-android错误:任务':app:dexDebug'的执行失败

  20. 20

    Android Studio 执行任务“:app:mergeDebugResources”失败,用户名中有特殊字符

  21. 21

    Android:任务“:dexDebug”的执行失败

  22. 22

    任务':app:preDexDebug'的Android Studio执行失败

  23. 23

    错误:任务':app:dexDebug'的执行失败。Parse.com

  24. 24

    react-native run-android失败,并出现以下错误:任务':app:dexDebug'的执行失败

  25. 25

    模块依赖性导致错误:Gradle:Android Studio中的任务“:app:preDexDebug”的执行失败

  26. 26

    任务':app:dexDebug'的执行失败。com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException

  27. 27

    Gradle:执行任务失败

  28. 28

    错误:任务':app:processDebugResources'android的执行失败

  29. 29

    毕加索导致任务':app:dexDebug'执行失败

热门标签

归档