Fuel: Gradel unable to resolve dependencies

Created on 3 Nov 2017  路  3Comments  路  Source: kittinunf/fuel

I have copies your gradle recommendations:

repositories {
    jcenter()
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.dubsmash.volley:library:2.0.1'
    compile 'ca.mimic:oauth2library:2.3.0'
    compile 'com.github.kittinunf.fuel:fuel:<latest-version>' //for JVM
    compile 'com.github.kittinunf.fuel:fuel-android:<latest-version>' //for Android
    compile 'com.github.kittinunf.fuel:fuel-livedata:<latest-version>' //for LiveData support
    compile 'com.github.kittinunf.fuel:fuel-rxjava:<latest-version>' //for RxJava support
    compile 'com.github.kittinunf.fuel:fuel-gson:<latest-version>' //for Gson support
    compile 'com.github.kittinunf.fuel:fuel-jackson:<latest-version>' //for Jackson support
}

and for each Fuel module I get:

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.kittinunf.fuel:fuel-gson:<latest-version>.

Could not resolve com.github.kittinunf.fuel:fuel-gson:<latest-version>.
Required by:
    project :app
 > No cached version of com.github.kittinunf.fuel:fuel-gson:<latest-version> available for offline mode.

Do you have any idea what is missing?

Most helpful comment

Take this vesion number and it will resolve

compile 'com.github.kittinunf.fuel:fuel:1.12.0' //for JVM
compile 'com.github.kittinunf.fuel:fuel-android:1.12.0' //for Android
compile 'com.github.kittinunf.fuel:fuel-livedata:1.12.0' //for LiveData support
compile 'com.github.kittinunf.fuel:fuel-rxjava:1.12.0' //for RxJava support
compile 'com.github.kittinunf.fuel:fuel-gson:1.12.0' //for Gson support
compile 'com.github.kittinunf.fuel:fuel-jackson:1.12.0' //for Jackson support
compile 'com.github.kittinunf.fuel:fuel-moshi:1.12.0' //for Moshi support

All 3 comments

Resolved. I put the actual latest version number and that fixed it.

Take this vesion number and it will resolve

compile 'com.github.kittinunf.fuel:fuel:1.12.0' //for JVM
compile 'com.github.kittinunf.fuel:fuel-android:1.12.0' //for Android
compile 'com.github.kittinunf.fuel:fuel-livedata:1.12.0' //for LiveData support
compile 'com.github.kittinunf.fuel:fuel-rxjava:1.12.0' //for RxJava support
compile 'com.github.kittinunf.fuel:fuel-gson:1.12.0' //for Gson support
compile 'com.github.kittinunf.fuel:fuel-jackson:1.12.0' //for Jackson support
compile 'com.github.kittinunf.fuel:fuel-moshi:1.12.0' //for Moshi support

@parveenpjpt thank you
Just wondering where I will be able to find the latest version for the futur ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iNoles picture iNoles  路  5Comments

lfmingo picture lfmingo  路  4Comments

liamkernighan picture liamkernighan  路  5Comments

anatolystansler picture anatolystansler  路  5Comments

Querschlag picture Querschlag  路  5Comments