使用官方示例替换了账号密码,增加了ANDROID_PHONE协议,启动后报错
Exception in thread "main" java.lang.VerifyError: class kotlinx.serialization.json.internal.StreamingJsonEncoder overrides final method encodeNullableSerializableElement.(Lkotlinx/serialization/descriptors/SerialDescriptor;ILkotlinx/serialization/SerializationStrategy;Ljava/lang/Object;)V at java.lang.ClassLoader.defineClass1(ClassLoader.java) at java.lang.ClassLoader._jr$defineClass(ClassLoader.java:760) at java.lang.ClassLoader.defineClass(ClassLoader.java:43016) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at kotlinx.serialization.json.Json.encodeToString(Json.kt:80) at net.mamoe.mirai.utils.SystemDeviceInfoKt.loadAsDeviceInfo(SystemDeviceInfo.kt:27) at net.mamoe.mirai.utils.LoginSolver_jvmKt$getFileBasedDeviceInfoSupplier$1.invoke(LoginSolver.jvm.kt:157) at net.mamoe.mirai.utils.LoginSolver_jvmKt$getFileBasedDeviceInfoSupplier$1.invoke(LoginSolver.jvm.kt) at net.mamoe.mirai.qqandroid.QQAndroidBotBase.<init>(QQAndroidBot.common.kt:268) at net.mamoe.mirai.qqandroid.QQAndroidBot.<init>(QQAndroidBot.common.kt:78) at net.mamoe.mirai.qqandroid.QQAndroid.newBot(QQAndroid.kt:31) at net.mamoe.mirai.BotFactoryJvm.newBot(BotFactory.kt:99) at com.winner.contentExtract.Test.main(Test.java:26)