Hello I was getting the following error on android using react native:
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.
BUILD FAILED
Total time: 10.621 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
I fixed by replacing lib by src in settings.graddle, I made the specific change in this line:
project(':lottie-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/lottie-react-native/lib/android')
Because I realized that the folder lib/android in node_modules for lottie-react-native wrapper does not exist and is the one that appears on http://airbnb.io/lottie/react-native/react-native.html#android and also the one that automatically adds when you make a
react-naive link lottie-react-native.
Please see the following screenshot:

Looks like a clone of #241
Sorry I didn't see #241, and yes it is the same issue.
Duplicate of #241
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
Most helpful comment
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.