FSensor
FSensor copied to clipboard
Could not install this library
Hi, first of all, thanks for this amazing work.
I'm trying to install this library but without success so far. I'm getting a 403 Forbidden
error
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not resolve com.github.KalebKE:FSensor:v2.x.
Required by:
project :app
> Could not resolve com.github.KalebKE:FSensor:v2.x.
> Could not get resource 'http://dl.bintray.com/lukaville/maven/com/github/KalebKE/FSensor/v2.x/FSensor-v2.x.pom'.
> Could not GET 'http://dl.bintray.com/lukaville/maven/com/github/KalebKE/FSensor/v2.x/FSensor-v2.x.pom'. Received status code 403 from server: Forbidden
Hey @vieiralucas, I was facing the same issue too. So try these steps fix it
- In your app build.gradle, change the version to 2.2 instead of 2.x i.e. change
implementation 'com.github.KalebKE:FSensor:v2.x'
toimplementation 'com.github.KalebKE:FSensor:v2.2'
- Add the URL to jitpack in settings.gradle instead of the project level build.gradle. The dependencyResolutionManagement in your settings.gradle should look like this
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven { url "https://jitpack.io" }
}
}