Android Studio 2.0 gradle installation error

I just updated Android Studio to version 2.0, created on April 5, 2016 on a stable channel, and now I have a strange error when I try to build my project:

Ignoring the InnerClasses attribute for an anonymous inner class (org.apache.commons.collections.BeanMap $ 1), which does not come with the 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 the source using the updated compiler and without specifying parameters like "-target". The consequence of ignoring this warning is that reflexive operations on this class will incorrectly indicate that it is not an inner class.

Errorlog

Here are my dependencies:

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' } 

Any help would be appreciated.

+6
source share
1 answer

You need to add to the dependencies in build.gradle: compile 'org.apache.commons: commons-collections4: 4.1'

+8
source

All Articles