java - cannot build libgdx game for android when depending on jersey client -


i'm trying write libgdx multiplayer game. rest server ready , want connect libgdx client. added following core dependencies.

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"   } } 

when running desktop target fine. when running android target error.

error:android gradle build target: org.gradle.tooling.gradleconnectionexception: not execute build using gradle installation '/users/miroo/.gradle/wrapper/dists/gradle-2.2-all/7a0ga9ywrcnpyp1ikd5yba574/gradle-2.2'.

what doing wrong? appreciated ;-)

thanks in advance.

amiroo

--update-- it' seems both dependencies (jersey-client , jersey-json) each cause separate error. error above caused jersey-json dependency

jersey-client

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"   } } 

information:gradle: executing tasks: [:android:assembledebug, :core:assemble] information:modules "android", "core" rebuilt due project configuration/dependencies changes information:12.07.15 13:52 - compilation completed 3 errors , 1 warning in 12s 335ms error:gradle: duplicate files during packaging of apk /users/miroo/documents/uni/2015 sose/tower defense/client/android/build/outputs/apk/android-debug-unaligned.apk error:gradle: execution failed task ':android:packagedebug'. duplicate files copied in apk meta-inf/jersey-module-version file 1: /users/miroo/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-client/1.17/2496bd961e09b4863d93588840c63f4d7b18a022/jersey-client-1.17.jar file 2: /users/miroo/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-client/1.17/2496bd961e09b4863d93588840c63f4d7b18a022/jersey-client-1.17.jar warning:gradle: [options] bootstrap class path not set in conjunction -source 1.6 /users/miroo/documents/uni/2015 sose/tower defense/client/core/src/com/mygdx/game/mygdxgame.java error:(62, 35) gradle: error: unmappable character encoding utf-8


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -