Permissionsdispatcher: received status code 401 from server: unauthorized.

Created on 6 Mar 2018  Â·  4Comments  Â·  Source: permissions-dispatcher/PermissionsDispatcher

needs some help:
image

in project gradle:
classpath 'com.android.tools.build:gradle:3.0.0'

in gradle/wrapper/gradlw-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

All 4 comments

PermissionsDispatcher is not distributed via Jitpack. Please review your module's repositories block and make sure to place jcenter() above the maven declaration for Jitpack.

@mannodermaus Should I declare maven in the "module" gradle??? I make the repositories block in my project gradle (not module gradle) like this, but it does not work.

repositories {
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
        google()
    }

My problem is: downloading permissions-dispatcher dependency jar is successful, and the compile process is succeeded too. But when running the code(or make the project), it throws this exception(401 unauthorized). Really need your help. Thanks.

I have integrated permissions-dispatcher in my project for a long time, and i have not met any problem before. It just throws exception yesterday. I searched throw google, but still cannot fix this. please lead me a way.

+1

Was this page helpful?
0 / 5 - 0 ratings