克鲁鲁殿下
本帖最后由 克鲁鲁殿下 于 2022-3-11 17:12 编辑

虽然和插件有关,但又不完全是插件,最后还是决定发在联机问答

————————————————
虽然想发在编程开发,但是觉得这个问题过于基础,没有讨论价值,源自于个人基础弱就先不麻烦变成开发板块了
报错1:
  1. A problem occurred configuring root project 'ExamplePlugin'.
  2. > Could not resolve all files for configuration ':taboo'.
  3.    > Could not find io.izzel:taboolib:6.0.3-18.
  4.      Searched in the following locations:
  5.        - https://repo2s.ptms.ink/repository/maven-releases/io/izzel/taboolib/6.0.3-18/taboolib-6.0.3-18.pom
  6.        - https://repo.maven.apache.org/maven2/io/izzel/taboolib/6.0.3-18/taboolib-6.0.3-18.pom
  7.      Required by:
  8.          project :

  9. Possible solution:
  10. - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
复制代码


报错2:
  1. 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的内容:

  1. plugins {
  2.     java
  3.     id("io.izzel.taboolib") version "1.30"
  4.     id("org.jetbrains.kotlin.jvm") version "1.5.10"
  5. }

  6. taboolib {
  7.     install("common")
  8.     install("platform-bukkit")
  9.     classifier = null
  10.     version = "6.0.3-18"
  11. }

  12. repositories {
  13.     mavenCentral()
  14. }

  15. dependencies {
  16.     compileOnly("ink.ptms.core:v11701:11701:mapped")
  17.     compileOnly("ink.ptms.core:v11701:11701:universal")
  18.     compileOnly(kotlin("stdlib"))
  19.     compileOnly(fileTree("libs"))
  20. }

  21. tasks.withType<JavaCompile> {
  22.     options.encoding = "UTF-8"
  23. }

  24. configure<JavaPluginConvention> {
  25.     sourceCompatibility = JavaVersion.VERSION_1_8
  26.     targetCompatibility = JavaVersion.VERSION_1_8
  27. }
复制代码
使用ide:intellij idea2021.3.2




金粒比较少了/能给出的悬赏这么少非常抱歉



克鲁鲁殿下
已经自行解决:忘记改版本号了(吐血

君忆
其实可以尝试tlib的快速开始 挺方便的
TabooLib — QuickStart (tabooproject.org)


第一页 上一页 下一页 最后一页