【问题标题】:Cannot find dependency from jitpack.io repository无法从 jitpack.io 存储库中找到依赖项
【发布时间】:2021-10-23 01:31:13
【问题描述】:

我想使用需要 jitpack.io 存储库的依赖项

尝试同步时找不到依赖项,但在 jitpack.io 上可用

语言科特林

我的 gradle 插件版本是 7.0.1

我的 gradle 版本是 7.0.2

一切都更新了

依赖

implementation 'com.github.delight-im:Android-AdvancedWebView:v3.2.1'

存储库

buildscript {
repositories {
    google()
    mavenCentral()
    maven{
        url 'https://jitpack.io/'
    }
}
dependencies {
    classpath 'com.android.tools.build:gradle:7.0.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"

    // NOTE: Do not place your application dependencies here; 
they belong
    // in the individual module build.gradle files
  }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

构建输出

Could not find com.github.delight-im:Android-AdvancedWebView:v3.2.1.

我测试了所有版本的 Independence

【问题讨论】:

  • 您是否尝试将其与 VPN 一起使用?

标签: android maven gradle dependencies jitpack


【解决方案1】:

这个问题的原因是Stable频道上的Android Studio更新,改变了gradle的结构,安装之前的版本会解决这个问题。

【讨论】:

    猜你喜欢
    • 2023-03-30
    • 2019-02-01
    • 2015-02-17
    • 2012-01-10
    • 1970-01-01
    • 2013-07-27
    • 2020-07-28
    • 1970-01-01
    • 2017-06-03
    相关资源
    最近更新 更多