-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Configuration with name 'default' not found. #62
Comments
Hi @Arkanine , this looks like the package not linked. I think I need more information to figure out what's the root cause. What doest your If you're using Android Studio, the project structure should looks like this |
@Arkanine , could you check if |
Yea, react-native-fetch-blob exists in node_modules folder. Also in package.json I have "react-native-fetch-blob": "^0.6.3-dev.1" |
@Arkanine , I've done some tests on clean 0.26~0.29 environments, unfortunately I could not reproduce this issue, the module installed properly. What's the version of your react-native ? Perhaps you can try remove the package and reinstall it ? |
Ok, I'll try to reinstall it. |
@Arkanine , I've somehow reproduced the problem ! I removed And I fix the problem simply remove the After remove the dependency, sync the project again. |
Besides, after removing the dependency from
|
@wkh237 I'm just reinstalled module. |
Please try adding this line to dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.facebook.react:react-native:+'
+ compile 'com.squareup.okhttp3:okhttp:3.4.1'
} |
The same(( |
Thanks @wkh237! |
Phew! So great to hear that!! I think the package missed OkHttp dependency after we change Network module to OkHttp, I will fixe it and publish a new version : ) |
Hi @cubbuk , This error usually means that the path in |
This is the path all my other dependencies are residing on. And when I check |
@cubbuk I think this problem might related to Gradle, could you tell me what's your gradle version ? EDIT Could you try replacing
|
It is 1.5, I see that this library uses 2.0. Could it be because of it? |
@cubbuk it might be the problem, could you try changing the |
I made it same with the library, but the problem still occurs, any other ideas =( |
Okay .. perhaps we need more logs .. try |
Here is the result, couldn't figure out anything specific?
|
I have no idea about this now, I'll use my ubuntu box try to reproduce this problem .. |
Thanks a lot, my main problem is that I am trying to upload videos and I can upload video files on the phone if they are around 5 MB, but for videos larger than 10 MB I am getting a |
No problem, I'll try to figure out what's going on. |
@cubbuk By the way , did you try to open the project by Android Studio ? If you have Android Studio, you might try the step above. |
I applied what you told and worked on Android Studio, removed the dependency then manually added again to settings file and I achieved running the project; however this time I am getting |
Hi @cubbuk , that looks like RNFetchBlob not got linked, |
@cubbuk , I somehow figured out the problem might caused by the project's react-native version. Because we're using OkHttp3 in 0.7.0 and react-native use OkHttp2 in pre 0.27 versions, it we manually add OkHttp3 dependency that will result in app crash or build failed. You may need to try upgrading your application by command
and install latest react-native-fetch-blob which I published today.
sometimes rnpm add duplicate |
@wkh237 thanks for detailed explanation, but after
One thing I noticed is I am using other libraries too and when I check them from Android Studio, the location they are located at is under And here is my settings.gradle content: Does that make any sense to you? Btw thanks a lot for the effort anyway, really appreciated. |
@cubbuk , I've noticed that there's an extra white space before RNFetchBlob path " ../node_modules/" does it make difference if you remove it? |
@wkh237 it worked, I didn't even need to any upgrade at all, the reason was the typo =) But after deleting node_modules and re-install averything it started giving error for okhttp3, I guess this is related to react-native version 0.27, because after running upgrade command, the below error is fixed:
Thanks a lot, I will try out uploading from camera roll and so on now. |
Great ! Well, In order to find the root cause of this problem, I've tested this module on many environments and also changed the rnpm link script. I'm think that except 0.27, most of versions should work fine on |
I was able to run it with 0.27.2 after upgrading react-native scripts. Thanks for the help =) |
You're welcome =) |
RN 0.30 with react-native-fetch-blob ^0.8.2, I also had a white space before " ../node_modules/" in my settings.gradle file. After removing, I can run |
Bug Fix: getExternalFilesDir null check
Hi,
When I try to run app by 'react-native run-android' I get this err:
A problem occurred configuring project ':app'.
Cannot evaluate module react-native-fetch-blob : Configuration with name 'default' not found.
Also I follow installation guide you provided. Please help me figure out with this issue.
Kind regards
The text was updated successfully, but these errors were encountered: