Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with last version of android studio and gradle #19

Open
BilalSylver opened this issue Sep 18, 2021 · 1 comment
Open

Error with last version of android studio and gradle #19

BilalSylver opened this issue Sep 18, 2021 · 1 comment

Comments

@BilalSylver
Copy link

BilalSylver commented Sep 18, 2021

Please need help i have used liquid swipe before with no problem but it want work with last version of android studio and gradle w this the error i got :

A problem occurred evaluating settings 'MyApp'.

No signature of method: org.gradle.initialization.DefaultProjectDescriptor.file() is applicable for argument types: (String) values: [github.properties]
Possible solutions: find(), find(groovy.lang.Closure), with(groovy.lang.Closure), use([Ljava.lang.Object;), is(java.lang.Object), wait()

@zyrridian
Copy link

I use this in settings.gradle.kts

import java.util.Properties

pluginManagement {
    repositories {
        google {
            content {
                includeGroupByRegex("com\\.android.*")
                includeGroupByRegex("com\\.google.*")
                includeGroupByRegex("androidx.*")
            }
        }
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {

    // Load local.properties
    val localPropertiesFile = File(rootDir, "local.properties")
    val localProperties = Properties()
    if (localPropertiesFile.exists()) {
        localProperties.load(localPropertiesFile.inputStream())
    }

    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
            name = "GitHubPackages"
            url = uri("https://maven.pkg.github.com/Cuberto/liquid-swipe-android")
            credentials {
                username = localProperties.getProperty("gpr.user") ?: ""
                password = localProperties.getProperty("gpr.key") ?: ""
            }
        }

    }
}

rootProject.name = "MyApp"
include(":app")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants