本帖最后由 克鲁鲁殿下 于 2022-3-11 17:12 编辑
虽然和插件有关,但又不完全是插件,最后还是决定发在联机问答
————————————————
虽然想发在编程开发,但是觉得这个问题过于基础,没有讨论价值,源自于个人基础弱就先不麻烦变成开发板块了
报错1:
复制代码
报错2:
复制代码报错截图:


——————————————————————————————————————————————
使用的是Taboolib SDK,但是导入之后就这个样子
已经检查gradle安装无误。

build.gradle.kts的内容:
复制代码使用ide:intellij idea2021.3.2
金粒比较少了/能给出的悬赏这么少非常抱歉
虽然和插件有关,但又不完全是插件,最后还是决定发在联机问答
————————————————
虽然想发在编程开发,但是觉得这个问题过于基础,没有讨论价值,源自于个人基础弱就先不麻烦变成开发板块了
报错1:
- A problem occurred configuring root project 'ExamplePlugin'.
- > Could not resolve all files for configuration ':taboo'.
- > Could not find io.izzel:taboolib:6.0.3-18.
- Searched in the following locations:
- - https://repo2s.ptms.ink/repository/maven-releases/io/izzel/taboolib/6.0.3-18/taboolib-6.0.3-18.pom
- - https://repo.maven.apache.org/maven2/io/izzel/taboolib/6.0.3-18/taboolib-6.0.3-18.pom
- Required by:
- project :
- Possible solution:
- - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
报错2:
- Cause: cannot assign instance of java.util.Collections$EmptyList to field java.lang.StackTraceElement.moduleVersion of type java.lang.String in instance of java.lang.StackTraceElement


——————————————————————————————————————————————
使用的是Taboolib SDK,但是导入之后就这个样子
已经检查gradle安装无误。

build.gradle.kts的内容:
- plugins {
- java
- id("io.izzel.taboolib") version "1.30"
- id("org.jetbrains.kotlin.jvm") version "1.5.10"
- }
- taboolib {
- install("common")
- install("platform-bukkit")
- classifier = null
- version = "6.0.3-18"
- }
- repositories {
- mavenCentral()
- }
- dependencies {
- compileOnly("ink.ptms.core:v11701:11701:mapped")
- compileOnly("ink.ptms.core:v11701:11701:universal")
- compileOnly(kotlin("stdlib"))
- compileOnly(fileTree("libs"))
- }
- tasks.withType<JavaCompile> {
- options.encoding = "UTF-8"
- }
- configure<JavaPluginConvention> {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
金粒比较少了/能给出的悬赏这么少非常抱歉
已经自行解决:忘记改版本号了(吐血