本帖最后由 byxiaobai 于 2022-10-27 19:48 编辑
复制代码复制代码直接引入1.16的API即可,1.18由于版本特性不能直接引入
- Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity
- at java.lang.ClassLoader.defineClass1(Native Method)
- testImplementation(fileTree("testLibs"))

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file org/bukkit/entity/Entity
没有引入jar包(或者没有打包相关jar
建议长文本折叠
咸鱼523 发表于 2022-10-27 15:06
没有引入jar包(或者没有打包相关jar
- testImplementation("org.mockito:mockito-core:4.3.1")
- testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
- testImplementation("org.mockito:mockito-inline:4.3.1")
- testImplementation("ink.ptms.core:v11800:11800-minimize:api")
- testImplementation("ink.ptms.core:v11800:11800-minimize:mapped")
- testRuntimeOnly("ink.ptms.core:v11800:11800-minimize:api")
- testRuntimeOnly("ink.ptms.core:v11800:11800-minimize:mapped")
- testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")