I started by creating a project and I'm trying to use liquid-swipe , I put the appropriate code according to the guide (in the settings.gradle file).
I get an error that I can't solve and I haven't seen a suitable solution (I saw in Flutter that this is a common problem but the solution doesn't work for me)
When I try to sync the gradle file I get errors that result from the fact that
Properties and FileInputStream are not recognized:
Cannot resolve symbolFileInputStream
Cannot resolve Properties
(lines 13 14)
how can I fix this?
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
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 {
username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER")
password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY")
}
}
}
}
}
rootProject.name = "My Application"
include ':app'