react-native-background-upload icon indicating copy to clipboard operation
react-native-background-upload copied to clipboard

Crashes on android11

Open lly0414 opened this issue 3 years ago • 1 comments

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

lly0414 avatar Dec 19 '21 10:12 lly0414

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!

frank137 avatar Jun 24 '22 09:06 frank137