I keep getting an error when I tried to build my react-native app with npx expo run:android
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
> A problem occurred configuring project ':react-native-webview'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Please specify a namespace in the module's build.gradle file like so:
android {
namespace 'com.example.namespace'
}
However, in android/app/build.gradle
...
android {
ndkVersion rootProject.ext.ndkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.wilburcoding.BirdSoundSearch'
...
There doesn't appear to be any answers online that have valid/working answers to this problem.
It does appear this issue may have originated from react-native-webview
. Is this an issue with the dependency or a gradle issue?