我刚刚从一个稳定的频道将Android Studio更新到了2016年4月5日构建的2.0版,现在在尝试构建我的项目时遇到一个奇怪的错误:
忽略不带有关联的EnclosingMethod属性的匿名内部类(org.apache.commons.collections.BeanMap $ 1)的InnerClasses属性。此类可能是由不面向现代.class文件格式的编译器生成的。推荐的解决方案是使用最新的编译器从源代码重新编译类,而无需指定任何“ -target”类型选项。忽略此警告的结果是,对该类进行反射操作将错误地表明它不是内部类。
这是我的依赖项:
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中添加依赖项:compile'org.apache.commons:commons-collections4:4.1'
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句