Giter Club home page Giter Club logo

Comments (12)

moallemi avatar moallemi commented on May 18, 2024 106

thanks.
this solved my problem:

-dontwarn okio.**

from okio.

yangxuqiang9 avatar yangxuqiang9 commented on May 18, 2024 13

如果你使用是okhttp和rxAndroid,retrofit2。并且在打release包是报找不到okio,rx,retrofit。你只需要在app下的proguard-rules.pro混淆文件中加入
-dontwarn org.codehaus.**
-dontwarn java.nio.**
-dontwarn java.lang.invoke.**
-dontwarn rx.**
即可

from okio.

JakeWharton avatar JakeWharton commented on May 18, 2024 10

No. The problem is in the Android platform's lack of these types, not this library.

from okio.

xiangdengbin avatar xiangdengbin commented on May 18, 2024 5

-dontwarn org.codehaus.**
-dontwarn okio.**

Thanks!

from okio.

NickRipley avatar NickRipley commented on May 18, 2024 2

Is there anyway this could be fixed so we don't have to use -dontwarn?

from okio.

JakeWharton avatar JakeWharton commented on May 18, 2024

You can safely ignore the warnings. They aren't used when not available.

from okio.

AbimbolaE avatar AbimbolaE commented on May 18, 2024

Hey @moallemi ,
How are you able to tell when a class isn't used when not available....Did you did through the entire source code???

from okio.

h4h13 avatar h4h13 commented on May 18, 2024

@moallemi Thanks

from okio.

Mingyueyixi avatar Mingyueyixi commented on May 18, 2024

So good!-dontwarn xxx** can ignore “can't find referenced class com.xxx.xxx””warnings. But warnings arenot err,why it can't continte?
I am also "醉了"。And 围观android‘s ’"洪荒大牛"——JakeWharton.

from okio.

lixinxinlove avatar lixinxinlove commented on May 18, 2024

-dontwarn okhttp3.**
-dontwarn okio.**

from okio.

AnshayM avatar AnshayM commented on May 18, 2024

thanks for ur suggestions,my problem is solved。

from okio.

Daller9999 avatar Daller9999 commented on May 18, 2024

thank you moallemi
Your variant resolved my problem :)

from okio.

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.