在使用sakurasolver之后已解决,之前用的是滑块验证
FloZ 0 发布的帖子
-
无法登陆mirai
2023-02-10 22:35:44 W/stderr: [LoginSolverSelenium] Captcha URL: https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=(qqnumber)&sid=521248790475593280&cap_cd=luPcKpGI3X7UeDo6oDqg0KFsVrCKVB_f06wdDcU1VyJyn6RPU45e7g**&clientype=1&apptype=2 2023-02-10 22:35:45 W/stderr: Starting ChromeDriver 109.0.5414.25 (771113d280dd3dda2fb422a6c805f0eb2b8ee6ed-refs/branch-heads/5414@{#303}) on port 31939 2023-02-10 22:35:45 W/stderr: Only local connections are allowed. 2023-02-10 22:35:45 W/stderr: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. 2023-02-10 22:35:45 W/stderr: ChromeDriver was started successfully. 2023-02-10 22:35:51 W/stderr: 2�� 10, 2023 10:35:51 ���� org.openqa.selenium.remote.ProtocolHandshake createSession 2023-02-10 22:35:51 W/stderr: ��Ϣ: Detected dialect: W3C 2023-02-10 22:35:51 W/stderr: 2�� 10, 2023 10:35:51 ���� org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch 2023-02-10 22:35:51 W/stderr: ����: Unable to find an exact match for CDP version 109, so returning the closest version found: a no-op implementation 2023-02-10 22:35:51 W/stderr: 2�� 10, 2023 10:35:51 ���� org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch 2023-02-10 22:35:51 W/stderr: ��Ϣ: Unable to find CDP implementation matching 109. 2023-02-10 22:35:51 W/stderr: 2�� 10, 2023 10:35:51 ���� org.openqa.selenium.chromium.ChromiumDriver lambda$new$0 2023-02-10 22:35:51 W/stderr: ����: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to `org.seleniumhq.selenium:selenium-devtools-v86:4.0.0-alpha-7` where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's. 2023-02-10 22:36:02 E/main: java.lang.NoClassDefFoundError: net/mamoe/mirai/utils/SwingSolver java.lang.NoClassDefFoundError: net/mamoe/mirai/utils/SwingSolver at mirai-login-solver-selenium-1.0-dev-16.jar//net.mamoe.mirai.selenium.SeleniumLoginSolverImpl.onSolveUnsafeDeviceLoginVerify(SeleniumLoginSolverImpl.kt:42) at net.mamoe.mirai.utils.LoginSolver.onSolveDeviceVerification$suspendImpl(LoginSolver.kt:91) at net.mamoe.mirai.utils.LoginSolver.onSolveDeviceVerification(LoginSolver.kt) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:278) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.utils.SwingSolver at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.loadClass(JvmPluginClassLoader.kt:440) ... 14 more
报错信息如上,谢谢解答的大佬