Android Studio 2.0构建了gradle错误

前端之家收集整理的这篇文章主要介绍了Android Studio 2.0构建了gradle错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚从稳定的频道将 Android Studio更新到2016年4月5日的版本2.0,现在我尝试构建项目时出现了一个奇怪的错误

Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.collections.BeanMap$1) that doesn’t come with an
associated EnclosingMethod attribute. This class was probably produced
by a compiler that did not target the modern .class file format. The
recommended solution is to recompile the class from source,using an
up-to-date compiler and without specifying any “-target” type options.
The consequence of ignoring this warning is that reflective operations
on this class will incorrectly indicate that it is not an inner
class.

@L_403_1@

这是我的依赖项:

dependencies {
compile fileTree(include: ['*.jar'],dir: 'libs')
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'me.dm7.barcodescanner:zxing:1.7.2'
compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
compile 'com.github.rey5137:material:1.1.1'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile files('libs/java-json.jar')
compile 'com.google.code.gson:gson:2.4'
compile 'se.emilsjolander:stickylistheaders:2.7.0'
compile('com.thoughtworks.xstream:xstream:1.4.7') {
    exclude group: 'xmlpull',module: 'xmlpull'
}
compile ('com.github.ganfra:material-spinner:1.1.0'){
    exclude group: 'com.nineoldandroids',module: 'library'
    exclude group: 'com.android.support',module: 'appcompat-v7'
}

compile 'ch.qos.logback:logback-core:1.1.7'
compile 'org.slf4j:slf4j-api:1.7.21'
}

任何帮助将是欣赏.

解决方法

您需要在build.gradle中添加依赖项: 编译’org.apache.commons:commons-collections4:4.1′
原文链接:https://www.f2er.com/android/308613.html

猜你在找的Android相关文章