取决于泽西客户端

时间:2015-07-08 10:59:32

标签: java android gradle libgdx jersey-client

我正在尝试编写一个libgdx多人游戏。 REST服务器已准备好,现在我想从我的libgdx客户端连接到它。 我将以下内容添加到核心依赖项中。

project(":core") {
  apply plugin: "java"


  dependencies {
    compile "com.badlogicgames.gdx:gdx:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
    compile "com.sun.jersey:jersey-client:1.17"
    compile "com.sun.jersey:jersey-json:1.17"
  }
}

运行桌面目标时一切正常。但是当运行android目标时,我得到了这个错误。

  

错误:Android Gradle Build Target:org.gradle.tooling.GradleConnectionException:无法使用Gradle安装执行构建' /Users/miroo/.gradle/wrapper/dists/gradle-2.2-all/7a0ga9ywrcnpyp1ikd5yba574/gradle -2.2'

我做错了什么?任何帮助表示赞赏; - )

提前致谢。

Amiroo

- UPDATE-- 它'似乎两个依赖项(jersey-client和jersey-json)都会导致单独的错误。上面的错误是由jersey-json Dependency

引起的

泽西客户端

project(":core") {
apply plugin: "java"


dependencies {
    compile "com.badlogicgames.gdx:gdx:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
    compile "com.sun.jersey:jersey-client:1.17"
  }
}
  

信息:Gradle:执行任务:[:android:assembleDebug,:core:assemble]   信息:模块" android","核心"由于项目配置/依赖项更改而完全重建   信息:12.07.15 13:52 - 编译完成时有3个错误,1个警告在12秒335毫秒内完成   错误:Gradle:在打包APK / Users / miroo / Documents / Uni / 2015 SoSe / Tower Defense / client / android / build / outputs / apk / android-debug-unaligned.apk期间重复文件   错误:Gradle:任务执行失败':android:packageDebug'。   在APK META-INF / jersey-module-version中复制的重复文件       文件1:/Users/miroo/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-client/1.17/2496bd961e09b4863d93588840c63f4d7b18a022/jersey-client-1.17.jar       文件2:/Users/miroo/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-client/1.17/2496bd961e09b4863d93588840c63f4d7b18a022/jersey-client-1.17.jar   警告:Gradle:[options] bootstrap类路径未与-source 1.6一起设置   / Users / miroo / Documents / Uni / 2015 SoSe / Tower Defense / client / core / src / com / mygdx / game / MyGdxGame.java   错误:(62,35)Gradle:错误:编码UTF-8的不可映射字符

0 个答案:

没有答案