提问者:小点点

建筑梯度误差。对不起,我不能把错误放在这里看身体


我在网站“https://medium . com/discord-bots/making-a-basic-discord-bot-with-Java-834949008 c2b”上跟随一个教程我得到了错误接收方类com . github . jengel man . grad le . plugins . shadow . internal . dependency filecollection没有定义或继承接口org.gradle.api.Buildable的已解析方法“abstract org . grad le . API . tasks . task dependency getbuild dependencies()”的实现。

这是我的build.gradle代码。

plugins {
    id 'java'
    id 'application'
    id 'com.github.johnrengelman.shadow' version'2.0.1'
}
mainClassName = "Main"

group 'BlueBot'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    compile 'net.dv8tion:JDA:4.0.0_62'
}

如果你无论如何要解决这个问题或有任何其他信息,你需要让我知道。

谢谢你抽出时间。


共1个答案

匿名用户

你需要更新你的影子版本

id 'com.github.johnrengelman.shadow' version'5.2.0'

你可以在GitHub上找到最新版本