【发布时间】: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 库被删除还是什么?
【问题讨论】:
标签: android android-webview adblock