Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

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

Open
ghost opened this issue Dec 22, 2016 · 2 comments
Open

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

ghost opened this issue Dec 22, 2016 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 22, 2016

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

@petterh
Copy link
Contributor

petterh commented Jan 20, 2017

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 pushed a commit to petterh/react-native-fetch-blob that referenced this issue Jan 20, 2017
petterh pushed a commit to petterh/react-native-fetch-blob that referenced this issue Jan 20, 2017
@sangdesigner
Copy link

i am also facing same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants