无法找到org.adblockplus:adblock-android-webview:4.1 &g



我正试图在我的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没有找到,是删除了广告块库还是什么?

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

replace

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

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

相关内容

  • 没有找到相关文章

最新更新