Configuration with name 'default' not found - React Native

Viewed 6335

When I run react-native run-android I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I know that this means that there is some linking error, but I cannot figure out what. I would love some help with the fix, I am very new to android.

2 Answers

Same issue happens to me also in case of using

react-native-sms-android

my solution:

npm install react-native-sms-android --save

and then modifiying the rest files as described in documentation.

Related