libadblockplus | core functionality of Adblock
kandi X-RAY | libadblockplus Summary
kandi X-RAY | libadblockplus Summary
A C++ library offering the core functionality of Adblock Plus.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libadblockplus
libadblockplus Key Features
libadblockplus Examples and Code Snippets
Community Discussions
Trending Discussions on libadblockplus
QUESTION
I am trying to use this in my Android app:
https://github.com/adblockplus/libadblockplus-android
bu putting this in my build.gradle:
implementation 'org.adblockplus:adblock-android-webview:4.4.0'
It works fine if I have jcenter()
listed in my build.gradle repositories. But I keep getting the warning JCenter is at end of life
and so am trying to switch to maven
.
But when I replace jcenter()
with mavenCentral()
, it doesn't work and gives me error:
Failed to resolve: org.adblockplus:adblock-android-webview:4.4.0
I can see that the library is available on Maven here:
https://mvnrepository.com/artifact/org.adblockplus/adblock-android-webview/4.4.0
But yet Android Studio is unable to find it for some reason.
What am I doing wrong? I am very new to this so not familiar with repositories much.
...ANSWER
Answered 2021-Jun-01 at 08:19If it's available in https://repo.maven.apache.org/maven2/, then you can use mavenCentral()
. Otherwise it's not there in mavenCentral()
.
https://mvnrepository.com just tells you which artifacts are available where. If you see at the bottom of https://mvnrepository.com/artifact/org.adblockplus/adblock-android-webview/4.4.0, it says "This artifact is located at JCenter repository (https://jcenter.bintray.com/)".
In the attached pics, you can see which repo they are available. Adblock is present only in Jcenter. Whereas Apache Commons is present only in Central and not in JCenter.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libadblockplus
Please, check [how to install WSL 2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install).
After installing,
open PowerShell (or cmd)
navigate to libadblockplus root
run (once) the provision script: wsl sudo ./build-scripts/provision.sh.
run it only once in order to prepare environment, no need to run it every time
run build script wsl ./build-scripts/build-android.sh You might also run it from inside the WSL2, then do not prefix your commands with wsl.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page