unable to upload due to 401 unauthorized error
lingxuxiong opened this issue · 1 comments
- 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
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.