fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Using OkHttp -- Docs clarification...

Open philipbjorge opened this issue 11 years ago • 5 comments

So I'm reading the docs on using OkHttp and it indicates that my gradle file should not have compile 'com.facebook.fresco:fresco:0.1.0+' if I'm trying to use Fresco with OkHttp. However, unless I add that dependency, I have no Fresco to initialize.

Should I be including three dependencies as follows? If so, I think the docs could be clearer...

    compile 'com.facebook.fresco:fresco:0.1.0+'
    compile "com.facebook.fresco:drawee:0.1.0+"
    compile "com.facebook.fresco:imagepipeline-okhttp:0.1.0+"

http://frescolib.org/docs/using-other-network-layers.html#_

philipbjorge avatar Mar 28 '15 04:03 philipbjorge

Thank you, there was a typo in the documentation. The following should be enough:

compile 'com.facebook.fresco:fresco:0.1.0+'
compile "com.facebook.fresco:imagepipeline-okhttp:0.1.0+"

plamenko avatar Mar 28 '15 05:03 plamenko

Awesome -- Thanks for the prompt response.

philipbjorge avatar Mar 28 '15 05:03 philipbjorge

It looks there is still a type.

compile: "com.facebook.fresco:fresco:0.1.0+"
compile: "com.facebook.fresco:imagepipeline-okhttp:0.1.0+"

should be

compile 'com.facebook.fresco:fresco:0.1.0+'
compile 'com.facebook.fresco:imagepipeline-okhttp:0.1.0+'

zhaoyouqi avatar Mar 29 '15 08:03 zhaoyouqi

the imagepipeline-okhttp also seems to have missing classes namely:

java.lang.NoSuchMethodError: com.squareup.okhttp.OkHttpClient.open at com.squareup.okhttp.OkUrlFactory.open(OkUrlFactory.java:44)

broakenmedia avatar Mar 29 '15 16:03 broakenmedia

@xbroak : would you mind creating separate issue for the missing class ?

michalgr avatar Mar 30 '15 22:03 michalgr