[🐛] Bug Report Title - build.gradle crashes after recent PR: Cannot get property 'android' on null object #4153
Closed
1 of 10 tasks
Labels
help: needs-triage
Issue needs additional investigation/triaging.
impact: build-error
Behaviour causing build failure
platform: android
type: bug
New bug report
Issue
#4122
Your changes from:
def firebaseBomVersion = appPackageJson['sdkVersions'] ? appPackageJson['sdkVersions']['android']['firebase'] : "25.5.0"
To:
def firebaseBomVersion = appPackageJson['sdkVersions']['android']['firebase']
causes crash while building:
Is there any reason for removing the checks?
Describe your issue here
Project Files
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: