Giter Site home page Giter Site logo

Comments (8)

getActivity avatar getActivity commented on July 20, 2024

小伙子,劳烦提供一个可供复现的 Demo 工程给我。

from easyhttp.

ljiezhou avatar ljiezhou commented on July 20, 2024

小伙子,劳烦提供一个可供复现的 Demo 工程给我。

demo我已经准备好了,怎么发给你呢

from easyhttp.

getActivity avatar getActivity commented on July 20, 2024

@ljiezhou 直接上传到 Github issue 评论区

from easyhttp.

ljiezhou avatar ljiezhou commented on July 20, 2024

Uploading com.easy.demo.zip…
// api Easy.INSTANCE.easy_http_
// api(name: Easy.easy_http, ext: 'aar')
//直接依赖源码
api project(':library')

源码和远程依赖都试过

from easyhttp.

getActivity avatar getActivity commented on July 20, 2024

@ljiezhou 小伙子,你的 demo 没有上传成功,重新上传一下。

from easyhttp.

ljiezhou avatar ljiezhou commented on July 20, 2024

com.easy.demo.zip

from easyhttp.

getActivity avatar getActivity commented on July 20, 2024

小伙子,在经过了大量的测试和验证后发现,这个问题其实就是混淆导致的问题,你发的 Demo 工程里面,debug 模式也开启了代码混淆模式,间接导致 HttpCallbackProxy 携带的泛型在编译过程中被擦除,解决的方案是在混淆规则中加入以下规则:

# 必须要加上此规则,否则会导致泛型解析失败
-keep public class * implements com.hjq.http.listener.OnHttpListener {
    *;
}

from easyhttp.

ljiezhou avatar ljiezhou commented on July 20, 2024

感谢轮子哥。
因为项目需要开启混淆,所以我将 com.hjq.http.listener 里面的接口都添加了混淆规则后,所有场景都正常了。

from easyhttp.

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.