android - java.lang.NoSuchMethodError: java.lang.System.arraycopy using XmlPullParser with Robolectric -


i trying test android app in android-studio robolectric. 1 of unit tests makes use of xmlpullparser:

inputstream in = new fileinputstream(new file("somefile.xml")); xmlpullparser parser = xml.newpullparser(); parser.setfeature(xmlpullparser.feature_process_namespaces, false); parser.setinput(in, null); parser.nexttag(); while(parser.next()!=xmlpullparser.end_document){     // ... } 

here happens when run test:

java.lang.nosuchmethoderror: java.lang.system.arraycopy([ii[iii)v     @ org.kxml2.io.kxmlparser.parsestarttag(kxmlparser.java:1145)     @ org.kxml2.io.kxmlparser.next(kxmlparser.java:372)     @ org.kxml2.io.kxmlparser.next(kxmlparser.java:313)     @ xxx.xxxx.readtag(xxxx.java:167) 

is problem implementation of parser on robolectric side?

this problems faced few months back. change android api version error lost. more info see this.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -