2012-12-21 12 views
1

我添加"com.google.gson" % "gson" % "2.2"我AppDependencies但是當我運行遊戲的更新,我得到:試圖在遊戲中加入GSON! 2.0項目

[信息]更新 {文件:/用戶/ levinotik /開發/斯卡拉/扔掉的/ myFirstApp /} myFirstApp ... [warn] module not found:com.google.gson#gson; 2.1.0
[warn] ==== local:tried [warn]
/Users/levinotik/dev/scala /play-2.0.4/framework/../repository/local/com.google.gson/gson/2.1.0/ivys/ivy.xml [警告] ====類型安全唱片集存儲庫:嘗試[警告]
http://repo.typesafe.com/typesafe/releases/com/google/gson/gson/2.1.0/gson-2.1.0.pom [警告] ====類型安全快照存儲庫:嘗試[警告]
http://repo.typesafe.com/typesafe/snapshots/com/google/gson/gson/2.1.0/gson-2.1.0.pom [警告] ==== scalajars回購:嘗試[警告]
http://scalajars.org/repository/com/google/gson/gson/2.1.0/gson-2.1.0.pom [警告] ==== SecureSocial存儲庫:嘗試[警告]
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 :找不到[wa RN] :::::::::::::::::::::::::::::::::::::::::::::: [錯誤] {file:/ Users/levinotik/Dev/scala /扔掉/ myFirstApp /} myFirstApp/*:更新: sbt.ResolveException:無法解析的依賴關係: com.google.gson#gson; 2.1.0:not發現[錯誤]總時間:4秒, 已完成2012年12月20日下午10點53分52秒

我該如何解決這個問題?

回答

4

你做在的groupId一個錯誤,那就是 「com.google 代碼 .gson」:

"com.google.code.gson" % "gson" % "2.2"