jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.54k stars 186 forks source link

Received status code 401 from server: Unauthorized #1141

Closed ihsanbal closed 7 years ago

ihsanbal commented 7 years ago

My library and project gradle plugin version is /gradle-3.3-all.zip

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
        > Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
            > Could not resolve com.github.ihsanbal:LoggingInterceptor:1.0.
                Required by:
                      project :app
                    > Could not resolve com.github.ihsanbal:LoggingInterceptor:1.0.
                        > Could not get resource 'http://jitpack.io/com/github/ihsanbal/LoggingInterceptor/1.0/LoggingInterceptor-1.0.pom'.
                            > Could not GET 'http://jitpack.io/com/github/ihsanbal/LoggingInterceptor/1.0/LoggingInterceptor-1.0.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. 

BUILD FAILED

Project LoggingInterceptor build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0-rc1'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url 'http://jitpack.io' }
    }
}

ext {
    retrofitVersion = '2.1.0'
    retrofitRxAdapterVersion = '2.1.0'
    gsonConverterVersion = '2.1.0'
    okhttpVersion = '3.6.0'
    rxjavaVersion = '1.0.10'
    rxAndroidVersion = '1.0.1'
    butterKnifeVersion = '8.4.0'
    daggerVersion = '2.8'
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Module : app build.gradle

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.github.ihsanbal:LoggingInterceptor:1.0'
    testCompile 'junit:junit:4.12'
}
jitpack-io commented 7 years ago

Hi,

The project doesn't seem to have a release 1.0 yet https://github.com/ihsanbal/LoggingInterceptor/releases

ihsanbal commented 7 years ago

@jitpack-io I removed gradlew and gradlew.bat files from .gitignore than my issue fixed.