我想集成Vimeo API到我的Android应用程序,以显示我的用户在我的Vimeo帐户的私人视频

mpgws1up  于 2023-05-05  发布在  Android
关注(0)|答案(2)|浏览(163)

我想集成Vimeo API到我的Android应用程序,问题是在我添加依赖后,如

implementation "com.github.vimeo.vimeo-networking-java:vimeo-networking:3.12.0"
   implementation "com.github.vimeo.vimeo-networking-java:models:3.12.0"

但在与我的项目同步后,当我尝试运行项目或构建它时,会显示此错误

BUILD FAILED in 968ms
21 actionable tasks: 8 executed, 13 up-to-date
 Caused by: 
 org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: 
 Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find 
com.github.vimeo.vimeo-networking-java:3.12.0:.

注意我还添加了jitpack

s4chpxco

s4chpxco1#

你确定你已经正确地输入了依赖项吗?从错误来看你好像用了

implementation "com.github.vimeo.vimeo-networking-java:vimeo-networking:3.12.0"
implementation "com.github.vimeo.vimeo-networking-java:3.12.0"

而不是

implementation "com.github.vimeo.vimeo-networking-java:vimeo-networking:3.12.0"
implementation "com.github.vimeo.vimeo-networking-java:models:3.12.0"
tf7tbtn2

tf7tbtn22#

我们必须在settings.gradle文件中的dependencyResolutionManagement中添加maven { url 'https:jitpack.io' }

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
    google()
    maven { url 'https://jitpack.io' }
    mavenCentral()
}
 }

相关问题