我想在Android Studio上使用cuberto Liquid swipe,但是在新版本上没有allprojects依赖项。我在哪里可以添加代码以使其在 android studio 2023 上运行?
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Cuberto/liquid-swipe-android")
credentials {
/** Create github.properties in root project folder file with
** gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN
** Or set env variable GPR_USER & GPR_API_KEY if not adding a properties file**/
username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER")
password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY")
}
}
}
https://github.com/Cuberto/liquid-swipe-android
我尝试将代码添加到
setting.grandle
,但没有成功。
你解决了吗? ,如果是的话请告诉我