gpt4 book ai didi

android - 为什么我会收到此错误 "Received status code 401 from server: Unauthorized"?

转载 作者:行者123 更新时间:2023-12-04 23:59:16 52 4
gpt4 key购买 nike

这就是问题所在

无法获取“https://jitpack.io/com/github/badoualy/datepicker-line/c6dcd05737/datepicker-line-c6dcd05737.pom”。从服务器收到状态代码 401:未授权禁用 Gradle“离线模式”和同步项目

这是我的gradle

 allprojects {
repositories {
google()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }

mavenCentral() // jcenter() works as well because it pulls from Maven Central
jcenter()
}
dependencies {

implementation 'com.github.badoualy:datepicker-line:c6dcd05737'
implementation 'com.github.User:Repo:Tag'
implementation 'com.github.mybringback22:HorizontalCalendarView-Android-:0.1.0'
//noinspection GradleCompatible
implementation 'com.android.support:design:27.1.1'
//vardView
implementation "androidx.cardview:cardview:1.0.0"
//ViewPager
implementation 'androidx.viewpager:viewpager:1.0.0'
//RecyclerView
implementation 'androidx.recyclerview:recyclerview:1.1.0'
//FloatButton
implementation 'com.getbase:floatingactionbutton:1.10.1'

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-database:19.2.1'
implementation 'com.google.firebase:firebase-auth:20.0.3'
implementation 'androidx.navigation:navigation-fragment:2.3.4'
implementation 'androidx.navigation:navigation-ui:2.3.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.4'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.google.firebase:firebase-database:19.7.0'
implementation platform('com.google.firebase:firebase-bom:26.8.0')
implementation 'com.google.firebase:firebase-analytics-ktx'

implementation 'com.google.firebase:firebase-storage:19.1.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
// material dialogs
def matieral_dialogs_version = "3.1.0"
implementation "com.afollestad.material-dialogs:core:$matieral_dialogs_version"
implementation "com.google.android.gms:play-services-location:17.0.0"
implementation 'com.aurelhubert:ahbottomnavigation:2.3.4'


implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation 'np.com.susanthapa.curved_bottom_navigation:curved_bottom_navigation:0.6.3'

implementation('com.alibaba.android:ultraviewpager:1.0.7.7@aar') {
transitive = true
}


// Material Dialog Library
implementation 'dev.shreyaspatil.MaterialDialog:MaterialDialog:2.1.1'

// Material Design Library
implementation 'com.google.android.material:material:1.0.0'

// Lottie Animation Library
implementation 'com.airbnb.android:lottie:3.3.6'
//menu item
implementation 'com.nightonke:boommenu:2.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.zxing:core:3.4.0'
implementation 'com.journeyapps:zxing-android-embedded:4.2.0'
implementation 'androidx.appcompat:appcompat:1.0.2'

implementation 'com.google.code.gson:gson:2.8.5'
implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3'
implementation 'com.firebaseui:firebase-ui-storage:3.2.2'

implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'

}

这是我输入链接时得到的结果

enter image description here

最佳答案

我遇到了一个类似的问题,我无法在我的 java 类中导入库。所以我发现我必须避免从下面的 allprojects libe

中删除已弃用的 jcenter()
allprojects {
repositories {
google()
//noinspection JcenterRepositoryObsolete
jcenter()

maven { url "https://jitpack.io" }

maven {
url 'https://maven.google.com/'
}

}

关于android - 为什么我会收到此错误 "Received status code 401 from server: Unauthorized"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67701563/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com