cli
cli copied to clipboard
Cannot invoke method isEmpty() on null object
Environment
RN : 0.63 MacOS : BigSur
Description
Cannot invoke method isEmpty() on null object
Cannot invoke method isEmpty() on null object
Reproducible Demo
I've found a workaround by editing /node_modules/@react-native-community/cli-platform-android/native_modules.gradle Line 275
- if (!androidConfig["buildTypes"].isEmpty()) {
+ if (androidConfig["buildTypes"] && !androidConfig["buildTypes"].isEmpty()) {
@thymikee Unfortunately, we faced with the same issue in lib version 6.2.0. The problem is in line 275.
Environment: Android Studio: Artic Fox 2020| 3.1.0 Patch 3 ANDROID GRADLE PLUGIN: 7.0+ minSdk : 21 targetSdk : 30, compileSdk : 30
@Flam3rboy your workaround works, but it would be great if we had this line updated in the library
FYI @thymikee @DevAnatolii
@i-petro PR welcome! :)
When will this fix be released?