danikula / AndroidVideoCache

Cache support for any video player with help of single line
Apache License 2.0
5.43k stars 1.16k forks source link

Error Pinging Server #304

Open bhumikash-tech opened 3 years ago

bhumikash-tech commented 3 years ago

I am leaving my issue here as told in Logcat. Please tell me the valid solution as I have already tried to add android:usesCleartextTraffic="true" , <uses-library android:name="org.apache.http.legacy" android:required="false" /> and android:networkSecurityConfig="@xml/network_config" in manifest file, but still facing same crashing issue. I am facing below error: If you see this message, please, report at https://github.com/danikula/AndroidVideoCache/issues/134. Default proxies are: [DIRECT] com.danikula.videocache.ProxyCacheException: Error pinging server (attempts: 3, max timeout: 280). If you see this message, please, report at https://github.com/danikula/AndroidVideoCache/issues/134. Default proxies are: [DIRECT]. Version: 2.7.1 at com.danikula.videocache.Pinger.ping(Pinger.java:73) at com.danikula.videocache.HttpProxyCacheServer.isAlive(HttpProxyCacheServer.java:185) at com.danikula.videocache.HttpProxyCacheServer.getProxyUrl(HttpProxyCacheServer.java:122) at com.danikula.videocache.HttpProxyCacheServer.getProxyUrl(HttpProxyCacheServer.java:103) at com.musicApp.raask.utils.CacheUtil.prefetchContents(CacheUtil.java:23) at com.musicApp.raask.utils.CacheUtil.lambda$prefetchOrTimeout$1(CacheUtil.java:35) at com.musicApp.raask.utils.-$$Lambda$CacheUtil$9G0FsUaR3XsEHFV5ICLOI-UGRXI.run(Unknown Source:4)

EbelloImbox commented 3 years ago

Any help? I have the same issue

24suixinsuoyu commented 2 years ago

android:usesCleartextTraffic="true", it works for me.

Also, update the compileSdk to 31? Try this, maybe it works.