gpt4 book ai didi

Android Studio 2.0 构建 gradle 报错

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:46:25 25 4
gpt4 key购买 nike

我刚刚从一个稳定的 channel 将 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.

ErrorLog

这是我的依赖:

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'

关于Android Studio 2.0 构建 gradle 报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36618245/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com