SlidingRootNav icon indicating copy to clipboard operation
SlidingRootNav copied to clipboard

Failed to resolve: com.yarolegovich:sliding-root-nav:1.1.1

Open jayantsadhu opened this issue 3 years ago • 15 comments

I'm trying to setup this dependency from last 24hrs but still no clue. A little help would be much appreciated. Attaching my build.gradle files. (project)

buildscript {
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.4"
    }
}
allprojects {
    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")
                }
            }
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

(module)

plugins {
    id 'com.android.application'
}

android {
    compileSdk 31

    defaultConfig {
        applicationId "com.example.foodcurves"
        minSdk 21
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
    implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha01'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

    implementation 'com.airbnb.android:lottie:4.2.2'
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'com.cuberto:liquid-swipe:1.0.0'
    implementation 'com.android.support:design:31.0.0'
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.31'
    implementation 'androidx.core:core:1.7.0'
    implementation 'androidx.core:core-ktx:1.7.0'
    
    implementation 'com.yarolegovich:sliding-root-nav:1.1.1'
}

jayantsadhu avatar Jan 23 '22 09:01 jayantsadhu

@yarolegovich If you could resolve this?

jayantsadhu avatar Jan 23 '22 09:01 jayantsadhu

I have the same problem. I added the dependency but my app doesn't load any class of this library.

ByteSpectra avatar Feb 01 '22 07:02 ByteSpectra

same issue here

jasonllanes avatar Feb 07 '22 10:02 jasonllanes

I solve my problem by adding jcenter beneath the maven over in setting file.

ByteSpectra avatar Feb 07 '22 14:02 ByteSpectra

Oww I see. I'll try

I solve my problem by adding jcenter beneath the maven over in setting file.

jasonllanes avatar Feb 07 '22 14:02 jasonllanes

I also have the same issue after adding this dependency. Failed to resolve: com.yarolegovich:sliding-root-nav:1.1.1

NAVNEET72159 avatar Mar 06 '22 16:03 NAVNEET72159

pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } }

sami-shah avatar Mar 15 '22 09:03 sami-shah

it worked for me too after adding jcenter()

MaguruAlex avatar Apr 08 '22 20:04 MaguruAlex

pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } }

It worked! Thanks

ChAdilHussainGujjar avatar Apr 26 '22 08:04 ChAdilHussainGujjar

thats good

On Tue, 26 Apr 2022 at 13:25, Adil Hussain Gujjar @.***> wrote:

pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() // i did this it works by just adding jcenter() jcenter() } }

It worked! Thanks

— Reply to this email directly, view it on GitHub https://github.com/yarolegovich/SlidingRootNav/issues/93#issuecomment-1109502092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQXLO7CAMVHKSDROM5WYBLVG6R7HANCNFSM5MTDSGBA . You are receiving this because you commented.Message ID: @.***>

sami-shah avatar Apr 26 '22 09:04 sami-shah

in settings gradle add jcenter()

Zakaryaef avatar May 19 '22 20:05 Zakaryaef

Thanks a lot After adding jcenter(). It works fine.

Gaurav-Suyall2025 avatar May 28 '22 17:05 Gaurav-Suyall2025

Thanks alot it worked for me after adding jcenter().. But I have a question not from this dependency I'm using Cuberto liquid flow library on my newer version of Android studio (Electric Eel) there is no all projects section under the build.gradle so where can I put the credentials of GitHub repository as mentioned in Cuberto Library.... If anyone knows please help me how to use that Thanks alot.....

YashSharmaas avatar Mar 05 '23 12:03 YashSharmaas