gradlew setupClassicWorkspace
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP: http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge172'.
> com.google.gson.stream.MalformedJsonException: Unterminated string at line 2912 column 15
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
請問為什麼我運行"gradlew.bat tasks"後出現如下錯誤:
"Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configur
ation failure takes precedence.
org.gradle.api.ProjectConfigurationException: You must set the Minecraft Version"
.....
"FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred evaluating root project 'forge-1.7.2-10.12.2.1147-src'.
> net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.getVersionsJsonUrl()L
java/lang/String;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-pr
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.mine
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Unable to load Maven meta-data from http://files.minecraftforge.net/ma
n/net/minecraftforge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://files.minecraftforge.net/maven/net/minecraftf
ge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml'.
> Connection to http://files.minecraftforge.net refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option t
get more log output.
BUILD FAILED
Total time: 35.774 secs
混合報錯:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-prer
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.minecr
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Could not HEAD 'http://files.minecraftforge.net/maven/net/minecraftforge
/srg2source/Srg2Source/3.2-SNAPSHOT/Srg2Source-3.2-20150109.190932-47.pom'.
> The target server failed to respond
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output.
BUILD FAILED
Total time: 1 mins 36.762 secs
國內源報錯:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-prer
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.minecr
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Unable to load Maven meta-data from http://files.minecraftforge.net/mave
n/net/minecraftforge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://files.minecraftforge.net/maven/net/minecraftfor
ge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml'.
> The target server failed to respond
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output.
0.0再次來看大觸賣萌
forge gradle本來就很方便,如果,你翻牆的話
gradlew setupClassicWorkspace
The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/..
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge172'.
> com.google.gson.stream.MalformedJsonException: Unterminated string at line 2912 column 15
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
這要怎麼解決啊
看上去像是json的問題...檢查一下assestIndexUrl那項有沒有問題吧,實在不行去掉然後再試試.
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
FAILURE: Build failed with an exception.
* What went wrong:
Failed to notify task execution graph listener.
> net.minecraftforge.gradle.delayed.DelayedFile.call()Ljava/io/File;
* Try:
Run with --info or --debug option to get more log output.
具體報錯:http://pan.baidu.com/s/1hq1in0C
請問如何解決
修復完畢 ;w;
請問為什麼我運行"gradlew.bat tasks"後出現如下錯誤:
"Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configur
ation failure takes precedence.
org.gradle.api.ProjectConfigurationException: You must set the Minecraft Version"
.....
"FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Administrator\Desktop\forge-1.7.2-10.12.2.1147-src\build.gr
adle' line: 19
* What went wrong:
A problem occurred evaluating root project 'forge-1.7.2-10.12.2.1147-src'.
> net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.getVersionsJsonUrl()L
java/lang/String;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED"
build.gradle文件內容:
"buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
classpath files('fgow-1.0.2.jar')
}
}
apply plugin: 'fgow'
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.7.2-10.12.2.1147"
assetDir = "eclipse/assets"
}
......
"
請樓主看一下原因何在~
Pingback引用通告: Co的基於ForgeModLoader的MinecraftMod製作教程(1) | Meta World
gooder是什麼鬼
Simplified English: good - gooder - goodest (笑)
Pingback引用通告: 第二章—配置開發環境 | KSの彼方
純老外源報錯:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-pr
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.mine
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Unable to load Maven meta-data from http://files.minecraftforge.net/ma
n/net/minecraftforge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://files.minecraftforge.net/maven/net/minecraftf
ge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml'.
> Connection to http://files.minecraftforge.net refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option t
get more log output.
BUILD FAILED
Total time: 35.774 secs
混合報錯:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-prer
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.minecr
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Could not HEAD 'http://files.minecraftforge.net/maven/net/minecraftforge
/srg2source/Srg2Source/3.2-SNAPSHOT/Srg2Source-3.2-20150109.190932-47.pom'.
> The target server failed to respond
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output.
BUILD FAILED
Total time: 1 mins 36.762 secs
國內源報錯:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge-1.7.10_pre4-10.12.2.1149-prer
elease-src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT.
Required by:
:forge-1.7.10_pre4-10.12.2.1149-prerelease-src:unspecified > net.minecr
aftforge.gradle:ForgeGradle:1.2-SNAPSHOT
> Unable to load Maven meta-data from http://files.minecraftforge.net/mave
n/net/minecraftforge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://files.minecraftforge.net/maven/net/minecraftfor
ge/srg2source/Srg2Source/3.2-SNAPSHOT/maven-metadata.xml'.
> The target server failed to respond
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output.
BUILD FAILED
Total time: 1 mins 24.565 secs
這是做的什麼死啊...
出錯了........不識別fgow是什麼鬼orz
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\forge\build.gradle' line: 19
* What went wrong:
A problem occurred evaluating root project 'forge'.
> Plugin with id 'fgow' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 11 mins 20.163 secs
d:\forge>gradlew.bat tasks
好吧,剛才傻了,明明下的是1.0.3結果classpath files('fgow-1.0.0.jar')了。。。。