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')了。。。。