zhigang1992 / react-native-video-cache

Caching your video without headache
189 stars 58 forks source link

In release APK android this caching not working #75

Open HemangiVekaria opened 11 months ago

HemangiVekaria commented 11 months ago

I created release apk and in that app get crash. Video is not get cache in release mode. in debug mode everything is working fine

phnk-in commented 11 months ago

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

DevRakeshKumarGupts commented 10 months ago

@phnk-in still not working. In release mode of apk react-native video cache not working. fine with debug mode.

mrtawil commented 9 months ago

I had to revert to version 2.7.3 and it worked on both debug and release modes.

9zzzy commented 9 months ago

I had to revert to version 2.7.3 and it worked on both debug and release modes.

still not work for me

frankyfdr commented 9 months ago

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

this worked

ahsanbhatti98 commented 7 months ago

same here it doesn't works on apk but working fine on debug build

ChiKaLiO commented 7 months ago

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

worked for me

rachna-khatnawlia commented 7 months ago

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

Worked for me..!!

raj-upadhyayy commented 5 months ago

Same issue

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

This did not work for me.

iqorlobanov commented 4 months ago

just add in app/build,gradle

dependencies { ... // other existing implementation('com.danikula:videocache:2.7.1') implementation("org.slf4j:slf4j-api:2.0.9") }

If this method doesn't work for someone, add to AndroidManifest.xml

<application
  ...
  android:usesCleartextTraffic="true"
>
...
</application>
UmidbekU commented 2 months ago

In my case, the crash occurred due to this error in the release version: Error: Exception in HostFunction: java.lang.NoClassDefFoundError: com.danikula.videocache.HttpProxyCacheServer.

As mentioned above, adding the following dependencies to app/build.gradle helped resolve the issue:

dependencies {
    // ... other existing dependencies
    implementation 'com.danikula:videocache:2.7.1'
    implementation 'org.slf4j:slf4j-api:2.0.9'
}