0

I intent to use the Fuel library inside an Android project.

I added the following to my Gradle file:

//core
implementation 'com.github.kittinunf.fuel:fuel:2.1.0'
//packages
implementation 'com.github.kittinunf.fuel:fuel-android:2.1.0'
implementation 'com.github.kittinunf.fuel:fuel-json:2.1.0'

It was succesfully resolved.

I copied the quick start code to a class, and when I try to compile, I get the following:

enter image description here

What else is required?

Sree
  • 1,694
  • 1
  • 18
  • 29
Nestor
  • 8,194
  • 7
  • 77
  • 156

1 Answers1

1

Make sure you are importing:

import com.github.kittinunf.result.Result

Otherwise it tries to use Kotlin's Result class.

gpunto
  • 2,573
  • 1
  • 14
  • 17
  • Yes, that was the required step. Shouldn't it be mentioned in the ***official documentation***? – Nestor Jun 23 '19 at 14:20