首页 > 解决方案 > Android Studio 无法解决:com.github.Udhayarajan:liquid-swipe-android:1.0.1

问题描述

尝试在 Android Studio 北极狐中实现 Liquid Swipe 时遇到问题

总是无法解决 github repo

使用官方的 cuberto 液体刷卡回购和 Udhayarajan 液体刷卡回购进行了尝试

build.gradle(项目)

buildscript {
    repositories {
        google()
        mavenCentral()

        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.2"

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

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

build.gradle(模块)

   id 'com.android.application'
}

android {
   compileSdk 31

   defaultConfig {
       applicationId "com.example.tiles"
       minSdk 24
       targetSdk 31
       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.3.1'
   implementation 'com.google.android.material:material:1.4.0'
   implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
   testImplementation 'junit:junit:4.13.2'
   androidTestImplementation 'androidx.test.ext:junit:1.1.3'
   androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
   implementation 'androidx.core:core-ktx:1.6.0'

   implementation 'com.github.Udhayarajan:liquid-swipe-android:1.0.1'
   implementation 'com.airbnb.android:lottie:4.1.0'
}

标签: javaandroidandroid-studiogradleandroid-studio-arctic-fox

解决方案


推荐阅读