Coder Social home page Coder Social logo

Comments (4)

ggggxiaolong avatar ggggxiaolong commented on May 12, 2024

项目更新了OkHttp 4.0.1 exclude group: 'com.squareup.okhttp3'后还是报错

java.lang.NoSuchMethodError: No static method get(Lokhttp3/Response;)Lokhttp3/internal/http/StatusLine; in class Lokhttp3/internal/http/StatusLine; or its super classes (declaration of 'okhttp3.internal.http.StatusLine' appears in /data/app/com.tapplock.en.pad.debug-2/base.apk:classes3.dex)
at tech.linjiang.pandora.network.okhttp3.internal.huc.OkHttpURLConnection.getHeaderFields(OkHttpURLConnection.java:227)
at tech.linjiang.pandora.network.okhttp3.internal.huc.DelegatingHttpsURLConnection.getHeaderFields(DelegatingHttpsURLConnection.java:184)
at tech.linjiang.pandora.network.okhttp3.internal.huc.OkHttpsURLConnection.getHeaderFields(OkHttpsURLConnection.java:27)
at hh.a(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):27)
at gx.b(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):2)
at gy.a(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):3)
at ha.a(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):14)
at com.google.maps.api.android.lib6.drd.ak.a(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):6)
at gc.a(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):22)
at gc.run(:com.google.android.gms.dynamite_mapsdynamite@17455050@17.4.55 (040406-248795830):8)

from pandora.

whataa avatar whataa commented on May 12, 2024

我看了下,OKHttp4.x开始已经用kotlin重写了,上面涉及到的方法调用方式已经改变,需要改下Pandora代码,所以无法简单的通过exclude来解决。但是考虑到不同项目依赖的OKHttp版本不一样,从兼容性方面来说,我还没找到一个好的解决方案

from pandora.

ggggxiaolong avatar ggggxiaolong commented on May 12, 2024

可以增加一个新的分支吗?pull request

from pandora.

LikeDege avatar LikeDege commented on May 12, 2024

我看了下,OKHttp4.x开始已经用kotlin重写了,上面涉及到的方法调用方式已经改变,需要改下Pandora代码,所以无法简单的通过exclude来解决。但是考虑到不同项目依赖的OKHttp版本不一样,从兼容性方面来说,我还没找到一个好的解决方案

@whataa 请问怎么解决

from pandora.

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.