GithubHelp home page GithubHelp logo

Comments (10)

jasta avatar jasta commented on April 28, 2024

Were you previously using okhttp 2.2.0 without problems? This seems like just okhttp itself would fail, independent of stetho-okhttp.

from stetho.

bbade avatar bbade commented on April 28, 2024

Yeah, as soon as I comment out that lib in my gradle file, it works again.

from stetho.

jasta avatar jasta commented on April 28, 2024

Can you provide your proguard configuration? I'm trying to repro locally and am so far unable to. Not sure what's going on here or why adding Stetho would cause it.

from stetho.

eleventigers avatar eleventigers commented on April 28, 2024

I would suggest excluding okhttp from stetho-okhttp dependency, worked for me:

compile ('com.facebook.stetho:stetho-okhttp:1.0.0') {
        exclude group: 'com.squareup.okhttp'
}

from stetho.

jasta avatar jasta commented on April 28, 2024

Interesting. The weird thing with the way this works is that I'm really trying to declare that I can use okhttp 2.2.0+ in that module but that I don't really want to depend on it (I want the caller to make the dependency). Gradle doesn't seem to offer a way to do this that I can see. Perhaps this is why Square is still using Maven :)

from stetho.

JakeWharton avatar JakeWharton commented on April 28, 2024

You shouldn't use wildcard dependencies for anything. Just declare a dep on 2.2.0. If someone depends on 2.3.0 every dependency resolver (Gradle, Ivy, Aether) knows what to do.

from stetho.

JakeWharton avatar JakeWharton commented on April 28, 2024

Or, optionally, use a provided dep which is exactly what you described.

from stetho.

jasta avatar jasta commented on April 28, 2024

@JakeWharton awesome, thanks.

from stetho.

longinoa avatar longinoa commented on April 28, 2024

@bbade we just shipped 1.0.1 that has the fix for this can you retry now

from stetho.

jasta avatar jasta commented on April 28, 2024

from stetho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.