Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

诶嘿,出错了Oops, something got wrong #2

Open
onion108 opened this issue Oct 20, 2021 · 5 comments
Open

诶嘿,出错了Oops, something got wrong #2

onion108 opened this issue Oct 20, 2021 · 5 comments
Labels

Comments

@onion108
Copy link

My console said:
我的控制台说到:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/harrypotter/Workspace/touhou/TouhouDemo/build.gradle' line: 37

* What went wrong:
A problem occurred evaluating root project 'TouhouFrice'.
> Could not find method compile() for arguments [org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.60] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s

What's f**king wrong with my machine or any other thing?
我的MBP或者别的什么东东出了问题了吗?

@ice1000
Copy link
Collaborator

ice1000 commented Oct 20, 2021

你的 gradle 版本太高了,这个工程或许只能在很低版本的 gradle 上使用(或者更新一下构建脚本也可以)

@ice1000
Copy link
Collaborator

ice1000 commented Oct 20, 2021

distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip

试试这个版本,或者把构建脚本里的 compile 换成 implementation

@ice1000
Copy link
Collaborator

ice1000 commented Oct 20, 2021

testCompile 要换成 testImplementation

@onion108
Copy link
Author

啊哈,然后还有,我没有JavaFX……Gradle配置JavaFX死活配置不好
(话说为什么JDK把JavaFX给分离出去了啊喂……)

@ice1000
Copy link
Collaborator

ice1000 commented Oct 21, 2021

啊哈,然后还有,我没有JavaFX……Gradle配置JavaFX死活配置不好
(话说为什么JDK把JavaFX给分离出去了啊喂……)

立即使用 bell-sw.com 的 full jdk,内置 jfx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants