无法解决:com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1

问题描述 投票:0回答:2

我有以下问题:在android studio中我想加载我从这里获取的库'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1':https://github.com/chthai64/滑动显示布局 但 android studio 没有给我许可并给我一个错误。谁知道怎么解决这个问题?

代码等级:

plugins {
    id 'com.android.application'
}

android {
    namespace 'com.example.justwork'
    compileSdk 32

    defaultConfig {
        applicationId "com.example.justwork"
        minSdk 22
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.6.0'
    implementation 'com.google.android.material:material:1.7.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

    implementation 'com.intuit.sdp:sdp-android:1.0.6'
    implementation 'com.intuit.ssp:ssp-android:1.0.6'

    implementation 'de.hdodenhof:circleimageview:3.1.0'

    implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'

}

我在对话框中查看了这个库,发现无法为其选择版本。由此我得出结论,由于某种原因,android studio 不允许我访问此资源。

java android android-studio gradle swipe
2个回答
0
投票

你必须在settings.gradle(项目设置)中添加jcenter()


0
投票

该库位于 jcenter 上,但 jcenter 已关闭。

© www.soinside.com 2019 - 2024. All rights reserved.