project-mirai / mirai-login-solver-selenium

SliderCaptcha solver
GNU Affero General Public License v3.0
120 stars 18 forks source link

引入依赖时报错:Cannot resolve org.littleshoot:littleproxy:1.1.3-KFIX #12

Closed curatorjin closed 3 years ago

curatorjin commented 3 years ago

这个littleproxy我目前能找到的最新的版本是1.1.2 1.1.3-KFIX这个版本在Jcenter仓库中没有找到 请问一下应该如何引入

mirai-login-solver-selenium版本为1.0-dev-15

Karlatemp commented 3 years ago
maven(url = "https://dl.bintray.com/karlatemp/misc")
xszqxszq commented 3 years ago
maven(url = "https://dl.bintray.com/karlatemp/misc")

401 Unauthorized

Him188 commented 3 years ago
maven(url = "https://dl.bintray.com/karlatemp/misc")

401 Unauthorized

应该是网络不好, 多尝试几次

xszqxszq commented 3 years ago
maven(url = "https://dl.bintray.com/karlatemp/misc")

401 Unauthorized

应该是网络不好, 多尝试几次

我是在Github actions上跑的

Run ./gradlew shadowJar

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not resolve io.github.karlatemp:java8:1.2.2.
     Required by:
         project : > net.mamoe:mirai-login-solver-selenium:1.0-dev-16 > io.github.karlatemp.mxlib:mxlib-common:3.0-dev-14 > io.github.karlatemp:unsafe-accessor:1.2.2
      > Could not resolve io.github.karlatemp:java8:1.2.2.
         > Could not get resource 'https://jitpack.io/io/github/karlatemp/java8/1.2.2/java8-1.2.2.pom'.
            > Could not GET 'https://jitpack.io/io/github/karlatemp/java8/1.2.2/java8-1.2.2.pom'. Received status code 401 from server: Unauthorized
   > Could not resolve io.github.karlatemp:java9:1.2.2.
     Required by:
         project : > net.mamoe:mirai-login-solver-selenium:1.0-dev-16 > io.github.karlatemp.mxlib:mxlib-common:3.0-dev-14 > io.github.karlatemp:unsafe-accessor:1.2.2
      > Could not resolve io.github.karlatemp:java9:1.2.2.
         > Could not get resource 'https://jitpack.io/io/github/karlatemp/java9/1.2.2/java9-1.2.2.pom'.
            > Could not GET 'https://jitpack.io/io/github/karlatemp/java9/1.2.2/java9-1.2.2.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 14s
Error: Process completed with exit code 1.

https://github.com/xszqxszq/OtomadBot/runs/2354226427?check_suite_focus=true https://github.com/xszqxszq/OtomadBot/blob/63834607689f5cf557b2e03b37c00f54b7f9e2a0/build.gradle.kts#L34

Him188 commented 3 years ago

@xszqxszq 尝试删掉 jitpack 仓库

xszqxszq commented 3 years ago

@xszqxszq 尝试删掉 jitpack 仓库

删掉后再试出现以下错误:

Run ./gradlew shadowJar

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find io.github.karlatemp:java8:1.2.2.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/io/github/karlatemp/java8/1.2.2/java8-1.2.2.pom
       - https://dl.bintray.com/karlatemp/misc/io/github/karlatemp/java8/1.2.2/java8-1.2.2.pom
       - https://jcenter.bintray.com/io/github/karlatemp/java8/1.2.2/java8-1.2.2.pom
     Required by:
         project : > net.mamoe:mirai-login-solver-selenium:1.0-dev-16 > io.github.karlatemp.mxlib:mxlib-common:3.0-dev-14 > io.github.karlatemp:unsafe-accessor:1.2.2
   > Could not find io.github.karlatemp:java9:1.2.2.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/io/github/karlatemp/java9/1.2.2/java9-1.2.2.pom
       - https://dl.bintray.com/karlatemp/misc/io/github/karlatemp/java9/1.2.2/java9-1.2.2.pom
       - https://jcenter.bintray.com/io/github/karlatemp/java9/1.2.2/java9-1.2.2.pom
     Required by:
         project : > net.mamoe:mirai-login-solver-selenium:1.0-dev-16 > io.github.karlatemp.mxlib:mxlib-common:3.0-dev-14 > io.github.karlatemp:unsafe-accessor:1.2.2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
Error: Process completed with exit code 1.
Him188 commented 3 years ago

@Karlatemp bintray boom?

Karlatemp commented 3 years ago

Yes, And my network cannot upload dependencies to MavenCentral

Him188 commented 3 years ago

Yes, And my network cannot upload dependencies to MavenCentral

现在 core 也传不上去, 失败了一下午了

Him188 commented 3 years ago

Yes, And my network cannot upload dependencies to MavenCentral

Try https://github.com/Him188/maven-central-publish/blob/main/UseInCI.md?