【问题标题】:Could not find org.adblockplus:adblock-android-webview:4.1找不到 org.adblockplus:adblock-android-webview:4.1
【发布时间】:2021-01-15 13:38:43
【问题描述】:

我正在尝试在我的 android 项目中使用 AdblockWebView。我正在使用 adblockplus webview,所以我将依赖项添加到我的应用程序build.gradle

https://github.com/adblockplus/libadblockplus-android

dependencies {
    implementation 'org.adblockplus:adblock-android-webview:4.1'

    ...
}

但我在构建项目时遇到以下错误,并且当我尝试使用org.adblockplus.libadblockplus.android.webview.AdblockWebView Android Studio 时可以找到该类。

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find org.adblockplus:adblock-android-webview:4.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/adblockplus/adblock-android-webview/4.1/adblock-android-webview-4.1.pom
       - https://jcenter.bintray.com/org/adblockplus/adblock-android-webview/4.1/adblock-android-webview-4.1.pom
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


我打开jcenter url 显示404 未找到,是adblock 库被删除还是什么?

https://repo.jfrog.org/artifactory/libs-release-bintray/org/adblockplus/adblock-android-webview/4.1/adblock-android-webview-4.1.pom?referrer

【问题讨论】:

    标签: android android-webview adblock


    【解决方案1】:

    替换

    implementation 'org.adblockplus:adblock-android-webview:4.1'
    

    implementation 'org.adblockplus:adblock-android-webview:4.3.0'
    

    【讨论】:

    • 还请解释为什么该答案在给定情况下会有所帮助。
    • @frankenapps 4.1 版已被删除
    猜你喜欢
    • 2021-08-19
    • 2019-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多