使用插件 id "com.vanniktech.maven.publish.base" version "0.25.3" 在 Android studio 中一直能上传库到 mavenCeentral 的,今天突然全部报错
Execution failed for task ':FaceVerifyLib:publishMavenPublicationToMavenCentralRepository'.
Failed to publish publication 'maven' to repository 'mavenCentral' Could not PUT 'https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/xxVerification-1.8.14.aar'. Received status code 401 from server: Content access is protected by token
你们有遇到吗? 根据官方文档排查了一上午还是没啥进展,😭
1
Goooler 75 天前
要用生成的 token 替换密码
|
![]() |
3
snowflake007 OP @Goooler 非常感谢,马上去弄
|
![]() |
4
snowflake007 OP @Goooler 大佬,
com.vanniktech.maven.publish.base.gradle.plugin:0.25.3 也要升级吗? maven { credentials { username = findProperty("ossrhToken") as String password = findProperty("ossrhTokenPassword") as String } } 这段代码我放 build.gradle 哪里都报错 |
5
Goooler 74 天前
升级不升级是没有关系的,用生成的用户名和 token 替换原来的用户名和密码就行了啊
|