React Native Unable to find a matching configuration of project (Build only)
Upgrade Gradle and add matchingFallbacks
to your non-standard build type.
Your libraries do not know what build type to match.
Eg.
buildType {
...
mySpecialRelease {
...
matchingFallbacks = ['release', 'debug']
}
}
Upgrade your gradle to a vesion 4 or above
How to update gradle in android studio
then copy paste
matchingFallbacks = ['release', 'debug']
in
android {
...
}
buildTypes {
release {
minifyEnabled false
matchingFallbacks = ['release', 'debug']
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
in my case, the problem solved by the following steps:
1. npm i
2. react-native link
hope this help anyone facing this issue.