I was implementing the cuberto liquid swipe animation in my app and after adding the github.properties and the dependencies as I added the code to build.gradle inside the app module that will be using the library. Then compile and run the app, it was giving an error - Could not GET 'https://maven.pkg.github.com/Cuberto/liquid-swipe-android/com/cuberto/liquid-swipe/1.0.0/liquid-swipe-1.0.0.aar'. Received status code 400 from server: Bad Request Disable Gradle 'offline mode' and sync project ..
here is my build.gradel code -
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
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")
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
here is the ss of the actual code given in the github.
and this the link to the github page of cuberto - https://github.com/Cuberto/liquid-swipe-android
Please help me I am unable to solve this past 3 days