2017-02-19 99 views
0

我在Windows PC上運行OS X El Capitan 10.11.6 VM(VMware)。到目前爲止,一切都很順利,但現在我試圖同步我的項目,它一直停留在Gradle: Download https://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.6.1/gwt-user-2.6.1.jarGradle下載repo1.maven.org卡住

它在此之前很快下載了一些其他的Gradle依賴項,所以不知道這裏的問題是什麼。我Gradle.build:

buildscript { 
    repositories { 
     mavenCentral() 
     maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } 
     jcenter() 
    } 
    dependencies { 
     classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6' 
     classpath 'com.android.tools.build:gradle:2.2.3' 
     classpath 'org.robovm:robovm-gradle-plugin:1.12.0' 
    } 
} 

allprojects { 
    apply plugin: "eclipse" 
    apply plugin: "idea" 

    version = '1.0' 
    ext { 
     appName = "SpaceFriends" 
     gdxVersion = '1.9.2' 
     roboVMVersion = '1.12.0' 
     box2DLightsVersion = '1.4' 
     ashleyVersion = '1.7.0' 
     aiVersion = '1.8.0' 
     gdxPayVersion = '0.10.3' 
     gdxFacebookVersion = '1.2.2' 
    } 

    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-freetype-platform:$gdxVersion:natives-desktop" 
     compile "de.tomgrill.gdxfacebook:gdx-facebook-desktop:$gdxFacebookVersion" 
    } 
} 
project(":android") { 
    apply plugin: "android" 

    android { 
     compileSdkVersion 23 
     buildToolsVersion '23.0.1' 
    } 

    configurations { natives } 

    dependencies { 
     compile project(":core") 
     compile fileTree(dir: '../core/libs', include: '*.jar') 
     compile('com.android.support:cardview-v7:23.2.0') { 
      force = true 
     } 
     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-freetype:$gdxVersion" 
     natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi" 
     natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a" 
     natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86" 
     compile "de.tomgrill.gdxfacebook:gdx-facebook-android:$gdxFacebookVersion" 
     compile "com.badlogicgames.gdxpay:gdx-pay-android:$gdxPayVersion" 
     compile "com.badlogicgames.gdxpay:gdx-pay-android-googleplay:${gdxPayVersion}@aar" 
    } 
} 
project(":ios") { 
    apply plugin: "java" 
    apply plugin: "robovm" 


    dependencies { 
     compile project(":core") 
     compile "org.robovm:robovm-rt:$roboVMVersion" 
     compile "org.robovm:robovm-cocoatouch:$roboVMVersion" 
     compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion" 
     compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios" 
     compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios" 
     compile "de.tomgrill.gdxfacebook:gdx-facebook-ios:$gdxFacebookVersion" 
     compile "com.badlogicgames.gdxpay:gdx-pay-iosrobovm-apple:$gdxPayVersion" 
    } 
} 
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 "de.tomgrill.gdxfacebook:gdx-facebook-html:$gdxFacebookVersion" 
    } 
} 
project(":core") { 
    apply plugin: "java" 


    dependencies { 
     compile "com.badlogicgames.gdx:gdx:$gdxVersion" 
     compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" 
     compile "de.tomgrill.gdxfacebook:gdx-facebook-core:$gdxFacebookVersion" 
     compile "com.badlogicgames.gdxpay:gdx-pay-client:$gdxPayVersion" 
     compile fileTree(dir: "libs", include: "*.jar") 
    } 
} 
tasks.eclipse.doLast { 
    delete ".project" 
} 

我下載的文件,可以在本地鏈接到它,但不知道如何,即我不知道我什麼的gradle這個提示下載

編輯(?):運行/gradlew clean也從services.gradle.org開始下載,但從未結束。

Edit2:值得一提的是,我的Gradle.build在我的PC上運行相同項目時工作得很好。

+0

該jar文件是29MB大。其他jar文件可能更小,因此下載速度更快。 –

+0

@JBNizet 29mb儘管在我的互聯網上應該需要5秒左右。我讓它在一夜之間運行,看看會發生什麼。 –

+0

我在30分鐘之前給了它,我發現一定是錯誤的。 –

回答

0

此問題特定於在VMware上運行的操作系統。

任何人遇到這個問題,或只是一個普通的問題,無法連接並從終端下載的東西,將您的網絡適配器從NAT更改爲橋接。