android - 无法获取 https :////dl. bintray.com/lukaville/maven/com/nbsp/library/1.09

标签 android maven server android-gradle-plugin jcenter

我收到如下所示的错误。
无法获取“https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.09/library-1.09.pom”。从服务器收到状态码 403:Forbidden
Gradle 配置如下所示。任何帮助表示赞赏。
我尝试同步项目,使缓存无效并重新启动,但没有任何效果。
build.gradle(:app)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.qdocs.smartschool"
        minSdkVersion 17
        targetSdkVersion 29
        versionCode 1
        versionName "3.1"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        disable 'RestrictedApi'
        checkReleaseBuilds false
        abortOnError false
    }

}

repositories {
    maven {
        url "http://d1.bintray.com/lukaville/maven"
    }
    jcenter() } dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.jakewharton.threetenabp:threetenabp:1.2.1'
    androidTestImplementation 'androidx.test:runner:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'com.mindorks:paracamera:0.2.2'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.google.firebase:firebase-messaging:11.0.4'
    implementation "com.squareup.okhttp3:okhttp:3.3.1"
    implementation 'com.nbsp:library:1.09'

} apply plugin: 'com.google.gms.google-services'
build.gradle(android_app_src)
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.1'
        classpath 'com.google.gms:google-services:3.2.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url  "https://dl.bintray.com/lukaville/maven"
        }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

最佳答案

JFrog 已关闭 Bintray .您需要转向替代方案。
请参阅一些提供所需更改示例的文章。

  • https://www.infoq.com/news/2021/02/jfrog-jcenter-bintray-closure/
  • https://testfairy.com/blog/jcenter-and-bintray-is-shutting-down-what-to-do/

  • 您也可以阅读 official JFrog blog对此。

    关于android - 无法获取 https :////dl. bintray.com/lukaville/maven/com/nbsp/library/1.09,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67804266/

    相关文章:

    server - 如何在 Wildfly 配置文件中使用变量?

    mysql - 无法卸载 mysql-server-8.0

    android - 混合 SKAnnotations 自定义 View

    eclipse - 找不到当前线程 Hibernate4/Spring3 的 session

    android - OnSharedPreferenceChangeListener 和 editor.clear()

    java - 指定通用文件路径以使用 jar 文件

    java - Maven 程序集中是否有程序集 id 属性?

    ruby-on-rails - 第一次运行 Rails 服务器时出错

    android - 模拟器:错误:无法加载OpenGLES仿真库

    android - findViewById 找不到我的按钮