我已将"com.google.gson" % "gson" % "2.2"
添加到我的AppDependencies,但是当我运行播放更新时,我得到:
[info]正在更新 {文件:/用户/ levinotik /开发/斯卡拉/扔掉的/ myFirstApp /} myFirstApp ... 找不到[warn]模块:com.google.gson#gson; 2.1.0
[警告] ====当地:试过[警告]
/Users/levinotik/dev/scala/play-2.0.4/framework/../repository/local/com.google.gson/gson/2.1.0/ivys/ivy.xml [warn] ==== Typesafe Releases Repository:试过[warn]
http://repo.typesafe.com/typesafe/releases/com/google/gson/gson/2.1.0/gson-2.1.0.pom [warn] ==== Typesafe Snapshots Repository:试过[warn]
http://repo.typesafe.com/typesafe/snapshots/com/google/gson/gson/2.1.0/gson-2.1.0.pom [警告] ==== scalajars repo:试过[警告]
http://scalajars.org/repository/com/google/gson/gson/2.1.0/gson-2.1.0.pom [warn] ==== SecureSocial Repository:试过[warn]
http://securesocial.ws/repository/releases/com.google.gson/gson/2.1.0/ivys/ivy.xml [警告] ====公众:试过[警告]
http://repo1.maven.org/maven2/com/google/gson/gson/2.1.0/gson-2.1.0.pom [warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::登记/> [警告] ::无人解决的依赖:: [警告] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::警告: : com.google.gson#gson; 2.1.0:找不到[warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [错误] {文件:/用户/ levinotik /开发/斯卡拉/扔掉的/ myFirstApp /} myFirstApp / *:更新时间: sbt.ResolveException:未解析的依赖项: com.google.gson#gson; 2.1.0:未找到[错误]总时间:4秒, 完成2012年12月20日下午10:53:52
我需要做些什么来解决这个问题?
答案 0 :(得分:4)
你在groupId中犯了一个错误,它是" com.google。代码 .gson":
"com.google.code.gson" % "gson" % "2.2"