1

我已经添加"com.google.gson" % "gson" % "2.2"到我的 AppDependencies 但是当我运行播放更新时,我得到:

[信息] 更新 {file:/Users/levinotik/Dev/scala/throw-away/myFirstApp/}myFirstApp... [警告] 未找到模块: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] ==== 类型安全快照存储库:尝试 [警告]
http://repo.typesafe.com/typesafe/snapshots/com/google/gson/gson/2.1.0/gson-2.1.0.pom [警告] == == scalajas repo: 试过 [warn]
http://scalajars.org/repository/com/google/gson/gson/2.1.0/gson-2.1.0.pom [warn] ==== SecureSocial Repository: 试过 [警告]
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 [警告] :::::::::::::::::::::::: :::::::::::::::::::::::
[警告] :: 未解决的依赖关系 :: [警告] :::::::::::::::: :::::::::::::::::::::::::::::: [警告] :: com.google.gson#gson;2.1.0: 未找到 [警告] :::::::::::::::::::::::::::::::::::::::::::::: [错误] {file:/Users/levinotik/Dev/scala/throw-away/myFirstApp/}myFirstApp/*:update: sbt.ResolveException: unresolved dependency: com.google.gson#gson;2.1.0: not found [error]总时间:4 秒,2012 年 12 月 20 日晚上 10:53:52 完成

我需要做什么来解决这个问题?

4

1 回答 1

4

您在 groupId 中输入了错误,它是“com.google.code.gson

"com.google.code.gson" % "gson" % "2.2"
于 2012-12-21T12:05:25.617 回答