Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

unable to upload due to 401 unauthorized error #330

Closed
lingxuxiong opened this issue Nov 11, 2020 · 1 comment
Closed

unable to upload due to 401 unauthorized error #330

lingxuxiong opened this issue Nov 11, 2020 · 1 comment

Comments

@lingxuxiong
Copy link

lingxuxiong commented Nov 11, 2020

  • What went wrong:
    Execution failed for task ':WiFiConnectivityManager:bintrayUpload'.

Could not upload to 'https://api.bintray.com/content/nling/wcm/wificonnectivitymanager/0.0.1/wcm/wificonnectivitymanager/0.0.1/wificonnectivitymanager-0.0.1-sources.jar': HTTP/1.1 401 Unauthorized [message:This resource requires authentication]

While it looks more like a configuration issue, just noted that the URL to upload file looks weird, not sure if it caused the failure.

`apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.novoda.bintray-release'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.novoda:bintray-release:0.9.2'
}
}
publish {
userOrg = 'nling'
repoName = 'wcm'
groupId = 'wcm'
artifactId = 'wificonnectivitymanager'
publishVersion = '0.0.1'
desc = ''
website = ''
}`

Additional information:
Android Studio: v4.1
Gradle Plugin Version: 3.6.2
Gradle version: 5.6.4

@lingxuxiong
Copy link
Author

confirmed a configuration issue.

ran
./gradlew clean build bintrayUpload -PbintrayUser=nling -PbintrayKey=key -PdryRun=false

instead of
./gradlew clean build bintrayUpload -PbintrayUser={nling} -PbintrayKey={key} -PdryRun=false

solved the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant