java - build.gradle 错误。抱歉不能把错误放在这里看正文
问题描述
我正在关注网站上的教程“ https://medium.com/discord-bots/making-a-basic-discord-bot-with-java-834949008c2b ”我收到错误Receiver class com.github.jengelman.gradle .plugins.shadow.internal.DependencyFileCollection 没有定义或继承接口 org.gradle.api.Buildable 的已解析方法“抽象 org.gradle.api.tasks.TaskDependency getBuildDependencies()”的实现。
这是我的 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'
}
如果您无论如何要解决此问题或需要任何其他信息,请告诉我。
感谢您的时间。
解决方案
推荐阅读
- mysql - SQL - 行中不同数量的元素
- asp.net-mvc - 什么决定了 Packages 文件夹在 Visual Studio 2017 项目中的位置以及如何更改?
- python - Keras 中的元素划分
- android - 向 textview 添加选取框功能时布局不滚动
- javascript - 为什么当我逐字复制 javascript 代码并将其封装在我自己的 html 中(除了包含propper标签之外,它是完全正确的)它不会起作用
- unit-testing - 如何从外部类运行 OneTimeSetUp 和 OneTimeTearDown
- r - 修复 SelectInput (RShiny) 中的变量
- sql - SQL 替换字符串中的日期
- ruby-on-rails - Postgres 搜索可以在搜索 2/6/1992 时返回 2-6-1992 的日期
- swift - InterfaceBuilder/Swift:后退按钮图像