FSensor icon indicating copy to clipboard operation
FSensor copied to clipboard

Could not install this library

Open vieiralucas opened this issue 3 years ago • 1 comments

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    

vieiralucas avatar May 24 '21 20:05 vieiralucas

Hey @vieiralucas, I was facing the same issue too. So try these steps fix it

  1. 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' to implementation 'com.github.KalebKE:FSensor:v2.2'
  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" }
    }
}

tsgowtham avatar Oct 13 '21 14:10 tsgowtham