When I want to publish my library module to private gitlab with access-token in Android Studio gradle build failed:
Execution failed for task ':project:publishReleasePublicationToMavenRepository'. Failed to publish publication 'release' to repository 'maven' Could not PUT 'https://git.mygitlab.co/api/v4/projects/projectId/packages/maven/co/android/project/1.0.0/project-1.0.0.aar'. Received status code 403 from server: Request blocked by Privoxy
This is my maven-publish:
repositories {
maven {
url "https://git.mygitlab.co/api/v4/projects/projectId/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = "xxxxxxxx"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}