在哪里添加代码以使 Cuberto Liquid Swipe 在 Android Studio 2023 中工作?

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

我想在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
,但没有成功。

java android dependencies
1个回答
0
投票

你解决了吗? ,如果是的话请告诉我

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