Comments (8)
小伙子,劳烦提供一个可供复现的 Demo 工程给我。
from easyhttp.
小伙子,劳烦提供一个可供复现的 Demo 工程给我。
demo我已经准备好了,怎么发给你呢
from easyhttp.
@ljiezhou 直接上传到 Github issue 评论区
from easyhttp.
Uploading com.easy.demo.zip…
// api Easy.INSTANCE.easy_http_
// api(name: Easy.easy_http, ext: 'aar')
//直接依赖源码
api project(':library')
源码和远程依赖都试过
from easyhttp.
@ljiezhou 小伙子,你的 demo 没有上传成功,重新上传一下。
from easyhttp.
from easyhttp.
小伙子,在经过了大量的测试和验证后发现,这个问题其实就是混淆导致的问题,你发的 Demo 工程里面,debug 模式也开启了代码混淆模式,间接导致 HttpCallbackProxy
携带的泛型在编译过程中被擦除,解决的方案是在混淆规则中加入以下规则:
# 必须要加上此规则,否则会导致泛型解析失败
-keep public class * implements com.hjq.http.listener.OnHttpListener {
*;
}
from easyhttp.
感谢轮子哥。
因为项目需要开启混淆,所以我将 com.hjq.http.listener 里面的接口都添加了混淆规则后,所有场景都正常了。
from easyhttp.
Related Issues (20)
- [疑惑]:如何基于此网络框架,封装一个中间层 HOT 1
- [Bug]:多个接口header里面传同样key不同vaule,同时调用,会出现传错的问题 HOT 3
- [疑惑]:请问GET请求支持传key同名value值不同的参数吗 HOT 3
- [建议]:增加支持ProtoBuf格式数据解析 HOT 2
- [疑惑]:需求:发起一个http请求,有可能因为参数或者网络请求出错,不想在请求失败时弹出toast,显示出错信息给用户来看,怎样处理? HOT 1
- [疑惑]:请大佬指示一下如何把对象作为参数传给后台 HOT 1
- [建议]:请问以后会支持断点续传的功能么 HOT 38
- [疑惑]:请求参数都是key=value&key=value?能不能变成json的格式 HOT 4
- [疑惑]:为什么初始化会走一遍 RequestHandler 的 requestFail 方法
- [疑惑]:请求中加入headers,这个headers的token加密后的值比较长 HOT 10
- [疑惑]:formRequest 如何统一转换为JsonRequest HOT 1
- [Bug]:IRequestInterceptor中的方法interceptArguments发生在主线程 HOT 10
- [疑惑]:如何动态设置请求头 HOT 8
- [疑惑]:post提交参数的问题 是否可以直接map提交 HOT 2
- [疑惑]:为什么会出现多余的请求参数 HOT 5
- [疑惑]:关于easyHttp设置contentType,按照文档中的方法设置了,但是调用接口的时候还是会提示Content type 'application/x-www-form-urlencoded;charset=utf-8' not suppo HOT 1
- [疑惑]:是否有参数控制加载的时候 不出现加载动画? HOT 2
- [建议]:请求方式统一设置 HOT 8
- [Bug]:MMKV升级成1.3.2版本报错 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyhttp.