java - Gradle error while setting up LibGDX with eclipse -
i trying setup libgdx eclipse using tutorial when seek build project got error
configuration on demand incubating feature. failure: build failed exception. * went wrong: problem occurred configuring root project 'testgame'. > not resolve dependencies configuration ':classpath'. > not resolve de.richsource.gradle.plugins:gwt-gradle-plugin:0.5. required by: :testgame:unspecified > not 'https://repo1.maven.org/maven2/de/richsource/gradle/plugins/gwt-gradle-plugin /0.5/gwt-gradle-plugin-0.5.pom'. > connection https://repo1.maven.org refused > not 'https://jcenter.bintray.com/de/richsource/gradle/plugins/gwt-gradle-plugin/0. 5/gwt-gradle-plugin-0.5.pom'. > connection https://jcenter.bintray.com refused > not resolve com.android.tools.build:gradle:0.13+. required by: :testgame:unspecified > failed list versions com.android.tools.build:gradle. > unable load maven meta-data https://repo1.maven.org/maven2/com/android/tools/buil d/gradle/maven-metadata.xml. > not 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-met adata.xml'. > connection https://repo1.maven.org refused > failed list versions com.android.tools.build:gradle. > unable load maven meta-data https://jcenter.bintray.com/com/android/tools/build/g radle/maven-metadata.xml. > not 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metada ta.xml'. > connection https://jcenter.bintray.com refused > not resolve org.robovm:robovm-gradle-plugin:1.0.0-alpha-04. required by: :testgame:unspecified > not 'https://repo1.maven.org/maven2/org/robovm/robovm-gradle-plugin/1.0.0-alpha-04 /robovm-gradle-plugin-1.0.0-alpha-04.pom'. > connection https://repo1.maven.org refused > not 'https://jcenter.bintray.com/org/robovm/robovm-gradle-plugin/1.0.0-alpha-04/ro bovm-gradle-plugin-1.0.0-alpha-04.pom'. > connection https://jcenter.bintray.com refused * try: run --stacktrace alternative stack trace. run --info or --debug alternative more l og output. build failed total time: 2 mins 12.602 secs
and libgdx ui generated build gradle file
buildscript { repositories { mavencentral() jcenter() } dependencies { classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.5' classpath 'com.android.tools.build:gradle:0.13+' classpath 'org.robovm:robovm-gradle-plugin:1.0.0-alpha-04' } } allprojects { apply plugin: "eclipse" apply plugin: "idea" version = '1.0' ext { appname = 'testinggame' gdxversion = '1.4.1' robovmversion = '1.0.0-alpha-04' } repositories { mavencentral() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases/" } } } project(":desktop") { apply plugin: "java" dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxversion" compile "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-desktop" compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxversion:natives-desktop" } } project(":android") { apply plugin: "android" configurations { natives } dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-android:$gdxversion" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-armeabi" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-armeabi-v7a" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-x86" compile "com.badlogicgames.gdx:gdx-box2d:$gdxversion" natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxversion:natives-armeabi" natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxversion:natives-armeabi-v7a" natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxversion:natives-x86" compile "com.badlogicgames.box2dlights:box2dlights:1.2" } } project(":ios") { apply plugin: "java" apply plugin: "robovm" configurations { natives } dependencies { compile project(":core") compile "org.robovm:robovm-rt:${robovmversion}" compile "org.robovm:robovm-cocoatouch:${robovmversion}" compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxversion" natives "com.badlogicgames.gdx:gdx-platform:$gdxversion:natives-ios" natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxversion:natives-ios" } } project(":html") { apply plugin: "gwt" apply plugin: "war" dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxversion" compile "com.badlogicgames.gdx:gdx:$gdxversion:sources" compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxversion:sources" compile "com.badlogicgames.gdx:gdx-box2d:$gdxversion:sources" compile "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxversion:sources" compile "com.badlogicgames.box2dlights:box2dlights:1.2:sources" } } project(":core") { apply plugin: "java" dependencies { compile "com.badlogicgames.gdx:gdx:$gdxversion" compile "com.badlogicgames.gdx:gdx-box2d:$gdxversion" compile "com.badlogicgames.box2dlights:box2dlights:1.2" } } tasks.eclipse.dolast { delete ".project" }
i know maven don't know gradle can't understand exception , i've gone wrong did in tutorial, help please?
after lot of searching found need add together gwt downloaded eclipse plugin , not mentioned in tutorial
so did
in eclipse go windows --->preference--->google ---->web toolkit --->add , search folder have extracted zip file
java eclipse gradle libgdx
No comments:
Post a Comment