我遇到了你所说的问题,无法编译。
A problem occurred configuring root project 'PingTv - Copy'.
> Could not resolve all files for configuration ':classpath'.
> Could not find semver4j-0.16.4-nodeps.jar (com.github.gundy:semver4j:0.16.4).
Searched in the following locations:
https://jitpack.io/com/github/gundy/semver4j/0.16.4/semver4j-0.16.4-nodeps.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Run Code Online (Sandbox Code Playgroud)
作为解决方案,我尝试了这个问题中的解决方案,但它对我不起作用。如果您有帮助,我会很高兴。
我的 Gradle 项目文件如下所示:
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
maven {
url "https://jitpack.io"
}
maven {
url "http://oss.sonatype.org/content/repositories/snapshots" …Run Code Online (Sandbox Code Playgroud)