byxiaobai
本帖最后由 byxiaobai 于 2022-10-27 19:48 编辑
  1. Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity
  2. java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity
  3.         at java.lang.ClassLoader.defineClass1(Native Method)

复制代码
  1. testImplementation(fileTree("testLibs"))
复制代码
直接引入1.16的API即可,1.18由于版本特性不能直接引入


咸鱼523
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity

没有引入jar包(或者没有打包相关jar

『南南』
建议长文本折叠

byxiaobai
咸鱼523 发表于 2022-10-27 15:06
没有引入jar包(或者没有打包相关jar

  1.     testImplementation("org.mockito:mockito-core:4.3.1")
  2.     testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
  3.     testImplementation("org.mockito:mockito-inline:4.3.1")
  4.     testImplementation("ink.ptms.core:v11800:11800-minimize:api")
  5.     testImplementation("ink.ptms.core:v11800:11800-minimize:mapped")
  6.     testRuntimeOnly("ink.ptms.core:v11800:11800-minimize:api")
  7.     testRuntimeOnly("ink.ptms.core:v11800:11800-minimize:mapped")
  8.     testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
复制代码

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