React-native-fetch-blob: [Android] Package does not exist

Created on 7 Aug 2016  路  2Comments  路  Source: wkh237/react-native-fetch-blob

Hi again,

trying to compile my app on Android with RN 0.31, I've got this error that links to the import on my MainApplication.java (version 0.8.1 is correctly installed via npm) :

error: package com.RNFetchBlob does not exist
import com.RNFetchBlob.RNFetchBlobPackage;

Any idea why?

Thanks for your great work :+1:

Most helpful comment

I think I tracked down the issue,

I don't have the problem anymore if I add :

compile project(':react-native-fetch-blob')
to android/app/build.gradle

Now I have an error with import okhttp3.internal.http.OkHeaders but I think I saw it on another issue, will check this now.

The error is

`error: cannot find symbol
import okhttp3.internal.http.OkHeaders;
                            ^
  symbol:   class OkHeaders
  location: package okhttp3.internal.http

Adding compile 'com.squareup.okhttp3:okhttp:3.4.1' in android/app/build.gradle didn't help

All 2 comments

I think I tracked down the issue,

I don't have the problem anymore if I add :

compile project(':react-native-fetch-blob')
to android/app/build.gradle

Now I have an error with import okhttp3.internal.http.OkHeaders but I think I saw it on another issue, will check this now.

The error is

`error: cannot find symbol
import okhttp3.internal.http.OkHeaders;
                            ^
  symbol:   class OkHeaders
  location: package okhttp3.internal.http

Adding compile 'com.squareup.okhttp3:okhttp:3.4.1' in android/app/build.gradle didn't help

I opened another issue #78 for this specific problem.

Was this page helpful?
0 / 5 - 0 ratings