Sample : Host name may not be null
还没有人认领这个 Issue。
评估
调研方向
首先,在跟随所示的 DeezerConnect、RadioPlayer 和 playRadio 调用时,在示例应用中重现该错误。跟踪 radio 播放请求使用的值,并确定 HTTP 主机为何为 null;当播放所选 radio 不再引发此异常时即表示完成。
由索引模型根据 Issue 内容生成。
描述
When I am trying to use your sample app and play radio i get ERROR
Exception occured java.lang.IllegalArgumentException
java.lang.IllegalArgumentException: Host name may not be null
at org.apache.http.HttpHost.<init>(HttpHost.java:88)
at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:529)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:519)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:497)
at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source)
at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source)
at com.deezer.sdk.player.impl.HipHop.accordion(Unknown Source)
at com.deezer.sdk.player.impl.HipHop$Blues.run(Unknown Source)
at java.lang.Thread.run(Thread.java:818)
mDeezerConnect = new DeezerConnect(this, SAMPLE_APP_ID);
mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,
new WifiAndMobileNetworkStateChecker());
mRadioPlayer.playRadio(RadioType.RADIO, radio.getId()); // <-- in this plaсе error occured
- 主要语言
- Java
- 星标
- 42
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
deezer/android-sample 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 25/100
deezer/android-sample#23 · 1 个 reaction ·
-
Unsafe implementation of the HostnameVerifier, Play Store rejects apps with this library (v0.11.2).未关闭
难度 4/5 3-5 天 新手友好度 25/100
deezer/android-sample#22 ·
-
难度 4/5 3-5 天 新手友好度 25/100
deezer/android-sample#21 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
deezer/android-sample#20 ·
-
SSL Error未关闭
难度 4/5 3-5 天 新手友好度 20/100
deezer/android-sample#19 ·
查看 deezer/android-sample 的全部 Issue
相似的 Issue
-
area/frontend good first issue kind/cooldown
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
beehive-lab/TornadoVM#1151 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
FasterXML/jackson-dataformats-binary#823 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复