本文介绍了奇怪:意外的顶级例外:执行失败任务的应用程序:dexDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我并没有实现新的库,但这一问题发生在编码:

错误:未能执行任务:应用程序:dexDebug

我build.gradle:

 相关性{
    编译文件树(导演:库,包括:['的* .jar'])
    编译com.android.support:support-v4:21.0.3
    编译com.google.android.gms:播放服务:87年6月5日
    编译com.google code.gson:GSON:2.3
    编译com.google code.gson:GSON:2.3
    编译com.google code.gson:GSON:2.2.2
    编译com.google.guava:番石榴:18.0'
    编译com.android.support:appcompat-v7:20.0.0
    编译文件(库/ Android的异步HTTP-1.4.6.jar)
    编译文件(库/ AndroidSwipeLayout-v1.1.6.jar)
    编译文件(库/ Apache的mime4j-0.5.jar)
    编译文件(库/ crashlytics.jar)
    编译文件(库/ HttpClient的-4.2.1.jar)
    编译文件(库/的HttpCore-4.2.1.jar)
    编译文件(库/ httpmime-4.2.1.jar)
    编译文件(库/ nineoldandroids-2.4.0.jar)
    编译文件(库/ ormlite,Android的4.48.jar)
    编译文件(库/ ormlite核心 -  4.48.jar)
    编译文件(库/ ormlite-JDBC-4.48.jar)
    编译文件(库/ osmdroid,Android的4.2.jar)
    编译文件(库/ SLF4J-的Andr​​oid 1.6.1-RC1.jar)
    编译文件(库/通用图像装载-1.9.3.jar)
}



packagingOptions {
        不包括META-INF / NOTICE.txt
        不包括META-INF / LICENSE.TXT
        不包括META-INF / DEPENDENCIES
        不包括META-INF /注意事项
        不包括META-INF /许可证
        不包括META-INF / LICENSE.TXT
        不包括META-INF / NOTICE.t
    }
 

解决方案

您可以hitted的65K方法限制。要使用谷歌播放服务更多的粒度,按照this指南,你只能使用你想要的部分。也许这将解决您的问题。

I didn't implement new libs but this problem occured while coding :

Error:Execution failed for task ':app:dexDebug'.

my build.gradle :

 dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.google.code.gson:gson:2.2.2'
    compile 'com.google.guava:guava:18.0'
    compile 'com.android.support:appcompat-v7:20.0.0'
    compile files('libs/android-async-http-1.4.6.jar')
    compile files('libs/AndroidSwipeLayout-v1.1.6.jar')
    compile files('libs/apache-mime4j-0.5.jar')
    compile files('libs/crashlytics.jar')
    compile files('libs/httpclient-4.2.1.jar')
    compile files('libs/httpcore-4.2.1.jar')
    compile files('libs/httpmime-4.2.1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/ormlite-android-4.48.jar')
    compile files('libs/ormlite-core-4.48.jar')
    compile files('libs/ormlite-jdbc-4.48.jar')
    compile files('libs/osmdroid-android-4.2.jar')
    compile files('libs/slf4j-android-1.6.1-RC1.jar')
    compile files('libs/universal-image-loader-1.9.3.jar')
}



packagingOptions {
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.t'
    }
解决方案

You may hitted the 65k methods limit. To use Google Play Services with more granularity, follow this guide, you can use only parts that you want. Probably this will fix your problem

这篇关于奇怪:意外的顶级例外:执行失败任务的应用程序:dexDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 22:25