jitpack.io
jitpack.io copied to clipboard
Private Repo. Received status code 401 from server: Unauthorized
Started a paid subscription plan this morning yet I haven't been able to sync the project. Any insight is greatly appreciated.
JitPack build log for the artifact: Analytics-Android 0.1.0-alpha07
Local log:
> Task :buildSrc:compileKotlin UP-TO-DATE
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:inspectClassesForKotlinIC UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestKotlin NO-SOURCE
> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validateTaskProperties UP-TO-DATE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
<ij_msg_gr>Gradle import errors<ij_msg_gr><ij_nav>/Users/eric/AndroidStudioProjects/analytics-android/app/build.gradle.kts<ij_nav><i><b>project ':app': Unable to build Kotlin project configuration</b><eol>Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':app:debugImplementationDependenciesMetadata'.<eol>Caused by: org.gradle.internal.resolve.ArtifactResolveException: Could not determine artifacts for com.github.LearnWithHomer:Analytics-Android:0.1.0-alpha07<eol>Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'.<eol>Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not HEAD 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'. Received status code 401 from server: Unauthorized</i>
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not determine artifacts for com.github.LearnWithHomer:Analytics-Android:0.1.0-alpha07
Could not get resource 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'.
Could not HEAD 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'. Received status code 401 from server: Unauthorized
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
CONFIGURE FAILED in 31s
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not determine artifacts for com.github.LearnWithHomer:Analytics-Android:0.1.0-alpha07
Could not get resource 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'.
Could not HEAD 'https://www.jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/Analytics-Android-0.1.0-alpha07.aar'. Received status code 401 from server: Unauthorized
Hi,
We recommend checking Gradle build file and ensure the access token is specified as in: https://jitpack.io/private#auth
@jitpack-io The private auth credentials are set in the project's build.gradle.kts as the docs prescribe. It's unsuccessful with and without the www subdomain. I've even hardcoded my access token for the moment to help isolate any failures during sync.
allprojects {
repositories {
google()
jcenter()
maven {
setUrl("https://jitpack.io")
// setUrl("https://www.jitpack.io")
credentials {
username = "jp_abc123Token"
}
}
}
}
Hi,
Are you able to view the build log in the browser? Log: https://jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/build.log
If so then that means authentication with GitHub is working.
Solved with:
settings.gradle
project(':react-native-jitsi-meet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-jitsi-meet/android')
AndroidManifest.xml
<manifest
xmlns:tools="http://schemas.android.com/tools"
...>
...
<application
tools:replace="android:allowBackup"
...
android/build.gradle
allprojects {
repositories {
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
...
}
}
app/build.gradle
dependencies {
implementation ('org.jitsi.react:jitsi-meet-sdk:2.+') { transitive = true }
}
Hi,
Are you able to view the build log in the browser? Log: https://jitpack.io/com/github/LearnWithHomer/Analytics-Android/0.1.0-alpha07/build.log
If so then that means authentication with GitHub is working.
no, i'm not.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Tengo el mismo problema :(