react-native-fetch-blob icon indicating copy to clipboard operation
react-native-fetch-blob copied to clipboard

Unable to run on Android (error: package okhttp3 does not exist)

Open ghost opened this issue 9 years ago • 2 comments

I can't run my project on Android because the error : error: package okhttp3 does not exist import okhttp3.MediaType; keeps showing on run.

I've tried several solutions like adding compile 'com.squareup.okhttp3:okhttp:3.4.1' to my build.gradle file but nothing worked !

RN : 0.39.2 RNFB : 0.10.0

ghost avatar Dec 22 '16 11:12 ghost

We worked around this by adding okhttp3 react-native-fetch-blob's build.gradle file:

dependencies {
    compile 'com.facebook.react:react-native:+'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    //{RNFetchBlob_PRE_0.28_DEPDENDENCY}
}

petterh avatar Jan 20 '17 08:01 petterh

i am also facing same issue

sangdesigner avatar May 25 '18 11:05 sangdesigner