Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received status code 401 from server: Unauthorized | API level 34 / Android 14/15 devices! #119

Open
danielcshn opened this issue Feb 29, 2024 · 3 comments

Comments

@danielcshn
Copy link

Info:

  • Android Studio Hedgehog | 2023.1.1 Patch 2
  • Build #AI-231.9392.1.2311.11330709, built on January 18, 2024
  • Runtime version: 17.0.7+0-b2043.56-10550314 amd64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • Gradle Version: 8.2.2
  • Gradle JDK: jbr-17 (JetBrains Runtime version 17.0.7)
  • Windows 11 22H2 (version 10.0.22621.3155)

Code:
build.gradle:

dependencies {
    (...)
    implementation 'io.github.kobakei:ratethisapp:1.0'
}

settings.gradle:

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}
rootProject.name = "app-name"
include ':app'

Error:

Could not GET 'https://jitpack.io/io/github/kobakei/ratethisapp/1.0/ratethisapp-1.0.pom'. 
Received status code 401 from server: Unauthorized

It was tried with the dependency:

        maven { url 'https://maven.aliyun.com/repository/jcenter' }

Error:

Unresolved dependencies

Could not resolve io.github.kobakei:ratethisapp:1.0.
@Hojjat13
Copy link

Hojjat13 commented Mar 2, 2024

master

@Hojjat13 Hojjat13 mentioned this issue Mar 2, 2024
@AltangerelG
Copy link

Same error with version 1.1.1

@bperrenoud
Copy link

I had the same error. The readme of the project says that the namespace was changed from com.kobakei to io.github.kobakei.

However, when looking for the package on jitpack (https://jitpack.io/#kobakei/Android-RateThisApp) the correct implementation seems to be:

implementation 'com.github.kobakei:Android-RateThisApp:Tag'

With Tag being the version (1.2.0, the latest, works as I am writing this message)

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

No branches or pull requests

4 participants