java - 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'
}
解决方案
推荐阅读
- android - 如何在某些设备上启用 enableShutterSound?
- pandas - 循环遍历 select 语句中的多个项目 - Pandas
- reactjs - 如何对历史回退功能设置条件?
- go - 从 rabbitmq 获取已发布消息的响应。戈朗
- javascript - AddEventListener 事件多次调用
- javascript - 如何将 Angular 项目作为库并在 JS 项目中使用?
- vue.js - 如何使用 VueJS 将图像上传到 Go 服务器
- angular - Angular,即使设置了 base-href,项目也没有在生产中运行
- html - 如何将活动元素添加到 div 中的 li?
- python - 使用 plot_acf 时不显示置信区间