Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
721 stars 325 forks source link

Crashes on android11 #295

Open lly0414 opened 2 years ago

lly0414 commented 2 years ago

crashes on android11 12-19 18:32:12.696 17532 18153 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method toString(Z)Ljava/lang/String; in class Lokhttp3/Cookie; or its super classes (declaration of 'okhttp3.Cookie' appears in /data/app/~~A3WeDrqeIq5e4Nu3RXllPw==/com.awesomeproject-k9nuTSDMnTBPu_c_bDMNgg==/base.apk!classes19.dex) How can i fix it

frank137 commented 2 years ago

Hi, I am getting the same crash on Android 12. Samsung tablet: SM-T860, model: Model:SP1A.210812.016

Version: 6.5.1

Any solutions?

Adding this to my gradle (app) file seemed to fix the issue:

    implementation(platform("com.squareup.okhttp3:okhttp-bom:4.4.1"))
    implementation("com.squareup.okhttp3:okhttp")              // No version!
    implementation("com.squareup.okhttp3:okhttp-urlconnection") // No version!