我試圖做與libgdx Android Studio中的一個項目,但我有一個問題,當我生成一個libgdx項目。 起初,他告訴我,我的本地變量JAVA_HOME出現了問題,他可以findn't我的JDK(這是目前) 當我想我的Java JDK複製我的文件「C:\ dev的\ java的\ JDK」他告訴我:錯誤,當我嘗試生成一個libgdx謨
Generating app in C:\Users\Thomas\Desktop\YoloRPG
Executing 'C:\Users\Thomas\Desktop\YoloRPG/gradlew.bat clean --no-daemon'
Unzipping C:\Users\Thomas\.gradle\wrapper\dists\gradle-2.10-
all\5b6kqrscumh9p4evkkemdk57ad\gradle-2.10-all.zip to
C:\Users\Thomas\.gradle\wrapper\dists\gradle-2.10-all\5b6kqrscumh9p4evkkemdk57ad
Exception in thread "main" java.lang.RuntimeException:
java.util.zip.ZipException: error in opening zip file
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:160)
at org.gradle.wrapper.Install.access$400(Install.java:29)
at org.gradle.wrapper.Install$1.call(Install.java:70)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
... 3 more
Done!
To import in Eclipse: File -> Import -> Gradle -> Gradle Project
To import to Intellij IDEA: File -> Open -> build.gradle
,當我嘗試用 文件打開創建的項目在Android上 - >導入設置... 一個消息框彈出書面 「找不到文件「C:\用戶\托馬斯\桌面\ YoloRPG \ settings.jar'」
有人可以幫我嗎? :(
請更新你的根build.gradle文件 – Aryan