gdata - Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.JavaConversions$.asMap(Ljava/util/Map;)Lscala/collection/mutable/Map; -
i trying use "gdata-scala-client" import google contacts using scala. followed instructions here, sample code
import com.google.gdata.service import com.google.gdata.data.stdatomfeed object con extends app { println("hey") val s = new service("comp-test-1.0", "cp") {} s.setusercredentials("scalaprogrammer1@gmail.com", "xxxxxxxx") val atomfeed = new stdatomfeed val f = s.query("http://www.google.com/m8/feeds/contacts/scalaprogrammer1%40gmail.com/base", atomfeed.feedpickler) (e <- f) println(e.title) }
but getting exception :
exception in thread "main" java.lang.nosuchmethoderror: scala.collection.javaconversions$.asmap(ljava/util/map;)lscala/collection/mutable/map; @ com.google.gdata.client.httpconnection$httpresponse.headers(httpconnection.scala:215) @ com.google.gdata.client.clientloginfactory.gettoken(clientloginfactory.scala:104) @ com.google.gdata.client.clientloginfactory.setusercredentials(clientloginfactory.scala:59) @ com.google.gdata.service.setusercredentials(service.scala:62) @ con$delayedinit$body.apply(con.scala:9) @ scala.function0$class.apply$mcv$sp(function0.scala:40) @ scala.runtime.abstractfunction0.apply$mcv$sp(abstractfunction0.scala:12) @ scala.app$$anonfun$main$1.apply(app.scala:71) @ scala.app$$anonfun$main$1.apply(app.scala:71) @ scala.collection.immutable.list.foreach(list.scala:318) @ scala.collection.generic.traversableforwarder$class.foreach(traversableforwarder.scala:32) @ scala.app$class.main(app.scala:71) @ con$.main(con.scala:6) @ con.main(con.scala)
i new scala , can suggest lacking?
Comments
Post a Comment