Please add "namespace" into /android/build.gradle => android, for compatibility with gradle 8+.
EX:
android {
namespace 'reactnativeexceptionhandler'
compileSdkVersion getExtValue(rootProject,'compileSdkVersion',23)
buildToolsVersion getExtValue(rootProject,'buildToolsVersion', "23.0.1")
defaultConfig {
minSdkVersion getExtValue(rootProject,'minSdkVersion', 16)
targetSdkVersion getExtValue(rootProject,'targetSdkVersion', 22)
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}