invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.73k stars 2.22k forks source link

Task :@react-native-firebase_app:compileDebugJavaWithJavac FAILED #6674

Closed KIRUBASHANKAR26 closed 2 years ago

KIRUBASHANKAR26 commented 2 years ago

Hi guys,

When trying to run my react native app on android, I get this error:

FAILURE: Build failed with an exception.

Build failed error [https://justpaste.it/27m0w](Build failed error)

Project Files

Javascript

Click To Expand

#### `package.json`: ``` { "name": "ghoshak_owner", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest", "androidRelease":"cd android && ./gradlew assembleRelease" }, "dependencies": { "@aws-sdk/client-s3": "^3.22.0", "@babel/runtime": "^7.7.4", "@react-native-community/toolbar-android": "0.1.0-rc.2", "@react-native-community/viewpager": "^5.0.11", "@react-native-firebase/app": "^16.4.3", "@react-native-firebase/dynamic-links": "^16.4.3", "aws-amplify": "^1.1.28", "aws-amplify-react-native": "^2.1.12", "aws-appsync": "^1.8.0", "graphql": "^14.3.1", "graphql-tag": "^2.10.1", "i18next": "^20.3.2", "jetify": "^1.0.2", "lodash": "^4.17.21", "lodash.debounce": "^4.0.8", "moment": "^2.24.0", "native-base": "^2.12.1", "newrelic-react-native-agent": "^0.0.4", "react": "16.8.3", "react-apollo": "^3.1.5", "react-i18next": "^11.11.0", "react-native": "0.59.9", "react-native-action-floating-button": "^1.0.7", "react-native-actions-sheet": "^0.4.9", "react-native-auto-height-image": "^1.1.3", "react-native-autocomplete-input": "^5.1.0", "react-native-aws3": "0.0.9", "react-native-axios": "^0.17.1", "react-native-base64": "^0.2.1", "react-native-bluetooth-escpos-printer": "^0.0.5", "react-native-camera-kit": "^8.0.4", "react-native-chart-kit": "^3.2.0", "react-native-charts-wrapper": "^0.5.7", "react-native-cli": "^2.0.1", "react-native-copilot": "^2.5.1", "react-native-device-info": "^6.0.4", "react-native-dialog-input": "^1.0.7", "react-native-dotenv": "^0.2.0", "react-native-draggable": "^3.3.0", "react-native-elements": "^3.4.2", "react-native-firebase": "^5.6.0", "react-native-floating-action": "^1.21.0", "react-native-geolocation-service": "^2.0.1", "react-native-google-places": "^3.1.2", "react-native-google-signin": "^2.1.1", "react-native-html-to-pdf": "^0.8.0", "react-native-image-crop-picker": "^0.24.1", "react-native-image-resizer": "^1.2.0", "react-native-linear-gradient": "^2.5.6", "react-native-localization": "^2.1.7", "react-native-maps": "^0.24.2", "react-native-modal-datetime-picker": "^7.4.2", "react-native-modal-popover": "^2.1.0", "react-native-navigation": "^2.29.0", "react-native-navigation-hooks": "^6.3.0", "react-native-notification-sounds": "^0.5.3", "react-native-otp-inputs": "^3.3.2", "react-native-pdf": "^5.0.1", "react-native-pdf-lib": "^1.0.0", "react-native-percentage-circle": "^1.0.7", "react-native-popup-menu": "^0.15.11", "react-native-push-notification": "^3.1.3", "react-native-qrcode": "^0.2.7", "react-native-razorpay": "^2.2.2", "react-native-reanimated-text-input": "^1.0.1", "react-native-safe-area-context": "^3.2.0", "react-native-share": "^4.1.0", "react-native-slider": "^0.11.0", "react-native-snap-carousel": "^3.9.1", "react-native-splash-screen": "^3.2.0", "react-native-sunmi-inner-printer": "^0.1.6", "react-native-svg": "9.13.6", "react-native-svg-charts": "^5.4.0", "react-native-table-component": "^1.2.1", "react-native-vector-icons": "^6.7.0", "react-native-view-shot": "^3.1.2", "react-native-webview": "^5.0.1", "react-native-wheel-color-picker": "^1.1.0", "react-native-youtube": "^1.1.0", "react-native-youtube-iframe": "^2.1.2", "react-redux": "^7.2.0", "redux-persist6": "npm:redux-persist@^6.0.0", "redux-thunk": "^2.3.0", "rn-fetch-blob": "^0.10.15", "uuid": "^3.0.1", "victory-native": "^34.3.0", "webp-converter": "^2.2.3" }, "devDependencies": { "@babel/core": "^7.4.5", "babel-jest": "^24.8.0", "babel-plugin-transform-remove-console": "^6.9.4", "graceful-fs": "^4.2.8", "jest": "^24.8.0", "jetifier": "^1.6.8", "metro-react-native-babel-preset": "^0.54.1", "react-test-renderer": "16.8.3" }, "jest": { "preset": "react-native" }, "rnpm": { "assets": [ "./assets/fonts" ] } } ``` #### `firebase.json` for react-native-firebase v6: ```json # N/A ```

iOS

Click To Expand

#### `ios/Podfile`: - I'm not using Pods ```ruby # N/A ``` #### `AppDelegate.m`: ```objc // N/A ```


Android

Click To Expand

#### Have you converted to AndroidX? - [] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ``` ext { var = '3.1.1' var1 = '3.6.3' } buildscript { ext { buildToolsVersion = "28.0.3" minSdkVersion = 21 compileSdkVersion = 28 targetSdkVersion = 30 supportLibVersion = "28.0.0" googlePlayServicesVersion = "16.+" firebaseVersion = "17.6.0" googlePlayServicesAuthVersion = "19.2.0" // <--- use this version or newer } repositories { google() jcenter() mavenLocal() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:3.4.3' classpath 'com.google.gms:google-services:4.3.14' // classpath 'com.android.tools.build:gradle:4.2.1' // <--- use this version or newer // classpath 'com.google.gms:google-services:4.3.10' } } allprojects { repositories { mavenLocal() google() mavenCentral() maven { url 'https://maven.google.com' } jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } maven { url 'https://jitpack.io' } } } subprojects { subproject -> afterEvaluate { if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { compileSdkVersion 29 buildToolsVersion "28.0.3" variantFilter { variant -> def names = variant.flavors*.name if (names.contains("reactNative51") || names.contains("reactNative55")) { setIgnore(true) } } } } } } ``` #### `android/app/build.gradle`: ``` apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation * entryFile: "index.android.js", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ entryFile: "index.js", // bundleCommand: "ram-bundle", // bundleAssetName: "index.android.bundle", // bundleInAlpha: true, // bundleInBeta: true ] apply from: "../../node_modules/react-native/react.gradle" project.ext.vectoricons = [ iconFontNames: [ 'MaterialIcons.ttf', 'EvilIcons.ttf' ] // Name of the font files you want to copy ] apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = true android { compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } // configurations { // exclude group: 'com.google.zxing' // } packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libjsc.so' pickFirst 'lib/arm64-v8a/libjsc.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } defaultConfig { applicationId "com.ghoshak_owner" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57" // See note below! versionCode 188 versionName "1.0.5" multiDexEnabled true } signingConfigs { debug { storeFile file(MYAPP_RELEASE_STORE_FILE) storePassword MYAPP_RELEASE_STORE_PASSWORD keyAlias MYAPP_RELEASE_KEY_ALIAS keyPassword MYAPP_RELEASE_KEY_PASSWORD } release { if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { storeFile file(MYAPP_UPLOAD_STORE_FILE) storePassword MYAPP_UPLOAD_STORE_PASSWORD keyAlias MYAPP_UPLOAD_KEY_ALIAS keyPassword MYAPP_UPLOAD_KEY_PASSWORD } } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } buildTypes { release { minifyEnabled enableProguardInReleaseBuilds shrinkResources enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" signingConfig signingConfigs.release } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } dexOptions { incremental true javaMaxHeapSize "2048M" jumboMode = true } } configurations { compile.exclude group: 'com.google.zxing' compile.exclude group: "junit", module: "junit" } dependencies { implementation project(':react-native-bluetooth-escpos-printer') implementation project(':react-native-google-signin') implementation project(':react-native-linear-gradient') implementation project(':react-native-view-shot') // implementation project(':@react-native-community_toolbar-android') implementation project(':@react-native-firebase_dynamic-links') // implementation project(':@react-native-firebase_app') // implementation project(':react-native-safe-area-context') // implementation project(':react-native-reanimated') implementation project(':react-native-localization') // implementation project(':@leesiongchan_react-native-esc-pos') implementation project(':react-native-notification-sounds') implementation project(':react-native-image-resizer') implementation project(':react-native-charts-wrapper') implementation project(':react-native-razorpay') implementation project(':react-native-device-info') implementation project(':react-native-html-to-pdf') implementation project(':react-native-share') implementation project(':react-native-pdf-lib') implementation project(':react-native-google-places') // implementation project(':react-native-camera') implementation project(':react-native-maps') implementation project(':react-native-pdf') implementation project(':rn-fetch-blob') // implementation project(':@philly25_react-native-paytm') implementation project(':react-native-webview') implementation project(':react-native-youtube') implementation project(':react-native-camera-kit') implementation project(':react-native-push-notification') implementation project(':react-native-image-crop-picker') implementation project(':react-native-svg') implementation project(':react-native-vector-icons') implementation project(':amazon-cognito-identity-js') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation "com.facebook.react:react-native:+" // From node_modules implementation project(':react-native-navigation') implementation project(':react-native-splash-screen') implementation project(':react-native-geolocation-service') // implementation 'com.android.support:multidex:1.0.3' implementation 'com.android.support:multidex:1.0.3' // For WebP support, including animated WebP implementation 'com.facebook.fresco:animated-webp:1.3.0' implementation 'com.facebook.fresco:webpsupport:1.3.0' // For WebP support, without animations compile 'com.facebook.fresco:webpsupport:1.3.0' implementation 'com.facebook.android:facebook-android-sdk:[5,6)' implementation 'com.facebook.fresco:webpsupport:1.3.0' // implementation project(path: ":@react-native-firebase_app") implementation project(path: ":@react-native-firebase_dynamic-links") // implementation project(':react-native-esc-pos') implementation 'com.android.support:support-compat:+' implementation 'com.google.android.play:core:1.8.2' implementation 'com.google.android.material:material:1.2.1' implementation 'com.android.support:design:25.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' // <-- add this; newer versions should work too // implementation platform('com.google.firebase:firebase-bom:26.5.0') } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } //apply plugin: 'com.google.gms.google-services' ``` #### `android/settings.gradle`: ``` rootProject.name = 'ghoshak_owner' include ':react-native-bluetooth-escpos-printer' project(':react-native-bluetooth-escpos-printer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bluetooth-escpos-printer/android') include ':react-native-google-signin' project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-signin/android') include ':react-native-linear-gradient' project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android') include ':react-native-view-shot' project(':react-native-view-shot').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-view-shot/android') // include ':@react-native-community_toolbar-android' // project(':@react-native-community_toolbar-android').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/toolbar-android/android') include ':@react-native-firebase_dynamic-links' project(':@react-native-firebase_dynamic-links').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/dynamic-links/android') include ':@react-native-firebase_app' project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android') // include ':react-native-safe-area-context' // project(':react-native-safe-area-context').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-safe-area-context/android') // include ':react-native-reanimated' // project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android') include ':react-native-localization' project(':react-native-localization').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-localization/android') // include ':@leesiongchan_react-native-esc-pos' // project(':@leesiongchan_react-native-esc-pos').projectDir = new File(rootProject.projectDir, '../node_modules/@leesiongchan/react-native-esc-pos/android') include ':react-native-notification-sounds' project(':react-native-notification-sounds').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notification-sounds/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-charts-wrapper' project(':react-native-charts-wrapper').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-charts-wrapper/android') include ':react-native-razorpay' project(':react-native-razorpay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-razorpay/android') include ':react-native-device-info' project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android') include ':react-native-html-to-pdf' project(':react-native-html-to-pdf').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-html-to-pdf/android') include ':react-native-share' project(':react-native-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share/android') include ':react-native-pdf-lib' project(':react-native-pdf-lib').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf-lib/android') include ':react-native-google-places' project(':react-native-google-places').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-places/android') // include ':react-native-camera' // project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') include ':react-native-maps' project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android') include ':react-native-pdf' project(':react-native-pdf').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf/android') include ':rn-fetch-blob' project(':rn-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/rn-fetch-blob/android') // include ':@philly25_react-native-paytm' // project(':@philly25_react-native-paytm').projectDir = new File(rootProject.projectDir, '../node_modules/@philly25/react-native-paytm/android') include ':react-native-webview' project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android') include ':react-native-youtube' project(':react-native-youtube').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-youtube/android') include ':react-native-camera-kit' project(':react-native-camera-kit').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera-kit/android') include ':react-native-push-notification' project(':react-native-push-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-push-notification/android') include ':react-native-image-crop-picker' project(':react-native-image-crop-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-crop-picker/android') include ':react-native-svg' project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') include ':amazon-cognito-identity-js' project(':amazon-cognito-identity-js').projectDir = new File(rootProject.projectDir, '../node_modules/amazon-cognito-identity-js/android') include ':react-native-navigation' project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/') include ':react-native-image-crop-picker' project(':react-native-image-crop-picker').projectDir = new File(settingsDir, '../node_modules/react-native-image-crop-picker/android') include ':react-native-push-notification' project(':react-native-push-notification').projectDir = file('../node_modules/react-native-push-notification/android') include ':react-native-splash-screen' project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android') include ':react-native-geolocation-service' project(':react-native-geolocation-service').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-geolocation-service/android') include ':@react-native-firebase_app' project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, './../node_modules/@react-native-firebase/app/android') include ':@react-native-firebase_dynamic-links' project(':@react-native-firebase_dynamic-links').projectDir = new File(rootProject.projectDir, './../node_modules/@react-native-firebase/dynamic-links/android') // include ':react-native-esc-pos' // project(':react-native-esc-pos').projectDir = new File(rootProject.projectDir, '../node_modules/@leesiongchan/react-native-esc-pos/android') include ':app' ``` #### `MainApplication.java`: ``` package com.ghoshak_owner; import android.app.Application; import io.invertase.firebase.app.ReactNativeFirebaseAppPackage; import io.invertase.firebase.dynamiclinks.ReactNativeFirebaseDynamicLinksPackage; import com.facebook.react.ReactApplication; import cn.jystudio.bluetooth.RNBluetoothEscposPrinterPackage; import co.apptailor.googlesignin.RNGoogleSigninPackage; import com.BV.LinearGradient.LinearGradientPackage; import fr.greweb.reactnativeviewshot.RNViewShotPackage; // import com.reactnativecommunity.toolbarandroid.ReactToolbarPackage; // import io.invertase.firebase.ReactNativeFirebaseAppPackage; // import com.th3rdwave.safeareacontext.SafeAreaContextPackage; // import com.swmansion.reanimated.ReanimatedPackage; import com.babisoft.ReactNativeLocalization.ReactNativeLocalizationPackage; // import leesiongchan.reactnativeescpos.EscPosPackage; import com.reactlibrarynotificationsounds.NotificationSoundsPackage; import fr.bamlab.rnimageresizer.ImageResizerPackage; import com.github.wuxudong.rncharts.MPAndroidChartPackage; import com.razorpay.rn.RazorpayPackage; import com.learnium.RNDeviceInfo.RNDeviceInfo; import com.christopherdro.htmltopdf.RNHTMLtoPDFPackage; import cl.json.RNSharePackage; import com.hopding.pdflib.PDFLibPackage; import com.arttitude360.reactnative.rngoogleplaces.RNGooglePlacesPackage; // import org.reactnative.camera.RNCameraPackage; import com.airbnb.android.react.maps.MapsPackage; import org.wonday.pdf.RCTPdfView; import com.RNFetchBlob.RNFetchBlobPackage; import com.reactlibrary.RNPayTmPackage; import com.reactnativecommunity.webview.RNCWebViewPackage; import com.inprogress.reactnativeyoutube.ReactNativeYouTube; import com.wix.RNCameraKit.RNCameraKitPackage; import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage; import com.reactnative.ivpusic.imagepicker.PickerPackage; import com.horcrux.svg.SvgPackage; import com.oblador.vectoricons.VectorIconsPackage; import com.amazonaws.RNAWSCognitoPackage; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.facebook.soloader.SoLoader; import com.reactnativenavigation.NavigationApplication; import com.reactnativenavigation.react.NavigationReactNativeHost; import com.reactnativenavigation.react.ReactGateway; import com.agontuk.RNFusedLocation.RNFusedLocationPackage; import android.content.Context; import org.devio.rn.splashscreen.SplashScreenReactPackage; import androidx.multidex.MultiDex; import java.util.Arrays; import java.util.List; // import leesiongchan.reactnativeescpos.EscPosPackage; public class MainApplication extends NavigationApplication { @Override protected ReactGateway createReactGateway() { ReactNativeHost host = new NavigationReactNativeHost(this, isDebug(), createAdditionalReactPackages()) { @Override protected String getJSMainModuleName() { return "index"; } }; return new ReactGateway(this, isDebug(), host); } @Override public boolean isDebug() { return BuildConfig.DEBUG; } protected List getPackages() { // Add additional packages you require here // No need to add RnnPackage and MainReactPackage return Arrays.asList( new MainReactPackage(), new RNBluetoothEscposPrinterPackage(), new RNGoogleSigninPackage(), new LinearGradientPackage(), new RNViewShotPackage(), // new ReactToolbarPackage(), // new ReactNativeFirebaseAppPackage(), // new SafeAreaContextPackage(), // new ReanimatedPackage(), new ReactNativeLocalizationPackage(), new EscPosPackage(), new NotificationSoundsPackage(), new ImageResizerPackage(), new MPAndroidChartPackage(), new RazorpayPackage(), new RNDeviceInfo(), new RNHTMLtoPDFPackage(), new RNSharePackage(), new PDFLibPackage(), new RNGooglePlacesPackage(), // new RNCameraPackage(), new MapsPackage(), new RCTPdfView(), new RNFetchBlobPackage(), new RNPayTmPackage(), new RNCWebViewPackage(), new ReactNativeYouTube(), new RNCameraKitPackage(), new ReactNativePushNotificationPackage(), new PickerPackage(), new SvgPackage(), new VectorIconsPackage(), new RNAWSCognitoPackage(), new SplashScreenReactPackage(), new RNFusedLocationPackage(), new ReactNativeFirebaseAppPackage(), new ReactNativeFirebaseDynamicLinksPackage() ); } @Override public List createAdditionalReactPackages() { return getPackages(); } @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(getBaseContext()); } } ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` System: OS: macOS 12.2.1 CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Memory: 116.18 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.3.1 - /usr/local/bin/npm Watchman: 0.0.0 - /opt/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 12.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 16.8.3 => 16.8.3 react-native: 0.59.9 => 0.59.9 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` - **Platform that you're experiencing the issue on**: - iOS - [x] Android - **iOS** but have not tested behavior on Android - **Android** but have not tested behavior on iOS - Both - **`react-native-firebase` version you're using that has this issue:** - `16.4.3` - **Are you using `TypeScript`?** - `N`

CMLCNL commented 2 years ago

@mikehardy can you review this [https://justpaste.it/27m0w]

We are getting same error.

Task :@react-native-firebase_app:compileDebugJavaWithJavac FAILED
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/main/java/io/invertase/firebase/common/UniversalFirebaseModule.java:24: error: package javax.annotation does not exist
import javax.annotation.OverridingMethodsMustInvokeSuper;
                       ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:20: error: package com.facebook.react does not exist
import com.facebook.react.ReactPackage;
                         ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:21: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.NativeModule;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactApplicationContext;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:23: error: package com.facebook.react.uimanager does not exist
import com.facebook.react.uimanager.ViewManager;
                                   ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:28: error: package javax.annotation does not exist
import javax.annotation.Nonnull;
                       ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:31: error: cannot find symbol
public class ReactNativeFirebaseAppPackage implements ReactPackage {
                                                      ^
  symbol: class ReactPackage
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:34: error: cannot find symbol
  public List<NativeModule> createNativeModules(@Nonnull ReactApplicationContext reactContext) {
                                                         ^
  symbol:   class ReactApplicationContext
  location: class ReactNativeFirebaseAppPackage
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:34: error: cannot find symbol
  public List<NativeModule> createNativeModules(@Nonnull ReactApplicationContext reactContext) {
              ^
  symbol:   class NativeModule
  location: class ReactNativeFirebaseAppPackage
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:46: error: cannot find symbol
  public List<ViewManager> createViewManagers(@Nonnull ReactApplicationContext reactContext) {
                                                       ^
  symbol:   class ReactApplicationContext
  location: class ReactNativeFirebaseAppPackage
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java:46: error: cannot find symbol
  public List<ViewManager> createViewManagers(@Nonnull ReactApplicationContext reactContext) {
              ^
  symbol:   class ViewManager
  location: class ReactNativeFirebaseAppPackage
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Promise;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:21: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactApplicationContext;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactMethod;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:23: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReadableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:30: error: cannot find symbol
public class ReactNativeFirebaseModule extends ReactContextBaseJavaModule
                                               ^
  symbol: class ReactContextBaseJavaModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/ContextProvider.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactContext;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:41: error: cannot find symbol
  ReactNativeFirebaseAppModule(ReactApplicationContext reactContext) {
                               ^
  symbol:   class ReactApplicationContext
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:52: error: cannot find symbol
  public void initializeApp(ReadableMap options, ReadableMap appConfig, Promise promise) {
                            ^
  symbol:   class ReadableMap
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:52: error: cannot find symbol
  public void initializeApp(ReadableMap options, ReadableMap appConfig, Promise promise) {
                                                 ^
  symbol:   class ReadableMap
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:52: error: cannot find symbol
  public void initializeApp(ReadableMap options, ReadableMap appConfig, Promise promise) {
                                                                        ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:67: error: cannot find symbol
  public void deleteApp(String appName, Promise promise) {
                                        ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:84: error: cannot find symbol
  public void eventsGetListeners(Promise promise) {
                                 ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:90: error: cannot find symbol
  public void eventsPing(String eventName, ReadableMap eventBody, Promise promise) {
                                           ^
  symbol:   class ReadableMap
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:90: error: cannot find symbol
  public void eventsPing(String eventName, ReadableMap eventBody, Promise promise) {
                                                                  ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:122: error: cannot find symbol
  public void metaGetAll(Promise promise) {
                         ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:128: error: cannot find symbol
  public void jsonGetAll(Promise promise) {
                         ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:134: error: cannot find symbol
  public void preferencesSetBool(String key, boolean value, Promise promise) {
                                                            ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:140: error: cannot find symbol
  public void preferencesSetString(String key, String value, Promise promise) {
                                                             ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:146: error: cannot find symbol
  public void preferencesGetAll(Promise promise) {
                                ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppModule.java:151: error: cannot find symbol
  public void preferencesClearAll(Promise promise) {
                                  ^
  symbol:   class Promise
  location: class ReactNativeFirebaseAppModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:36: error: cannot find symbol
  public ReactNativeFirebaseModule(ReactApplicationContext reactContext, String moduleName) {
                                   ^
  symbol:   class ReactApplicationContext
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:42: error: cannot find symbol
  public static void rejectPromiseWithExceptionMap(Promise promise, Exception exception) {
                                                   ^
  symbol:   class Promise
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:47: error: cannot find symbol
      Promise promise, String code, String message, ReadableMap resolver) {
      ^
  symbol:   class Promise
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:47: error: cannot find symbol
      Promise promise, String code, String message, ReadableMap resolver) {
                                                    ^
  symbol:   class ReadableMap
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:57: error: cannot find symbol
  public static void rejectPromiseWithCodeAndMessage(Promise promise, String code, String message) {
                                                     ^
  symbol:   class Promise
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:65: error: cannot find symbol
      Promise promise, String code, String message, String nativeErrorMessage) {
      ^
  symbol:   class Promise
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:79: error: cannot find symbol
  public ReactContext getContext() {
         ^
  symbol:   class ReactContext
  location: class ReactNativeFirebaseModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/ContextProvider.java:27: error: cannot find symbol
  ReactContext getContext();
  ^
  symbol:   class ReactContext
  location: interface ContextProvider
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseModule.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.*;
^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseInitProvider.java:28: error: package javax.annotation does not exist
import javax.annotation.OverridingMethodsMustInvokeSuper;
                       ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java:49: error: cannot find symbol
  public ReactNativeFirebaseUtilsModule(ReactApplicationContext reactContext) {
                                        ^
  symbol:   class ReactApplicationContext
  location: class ReactNativeFirebaseUtilsModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java:67: error: cannot find symbol
  public void androidGetPlayServicesStatus(Promise promise) {
                                           ^
  symbol:   class Promise
  location: class ReactNativeFirebaseUtilsModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java:121: error: cannot find symbol
  private WritableMap getPlayServicesStatusMap() {
          ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseUtilsModule
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/utils/ReactNativeFirebaseUtilsModule.java:27: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.*;
^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java:23: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java:65: error: cannot find symbol
  public WritableMap getAll() {
         ^
  symbol:   class WritableMap
  location: class ReactNativeFirebasePreferences
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:23: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReadableArray;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReadableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:25: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:31: error: package javax.annotation does not exist
import javax.annotation.Nullable;
                       ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:65: error: cannot find symbol
  public static WritableMap firebaseAppToWritableMap(FirebaseApp firebaseApp) {
                ^
  symbol:   class WritableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:70: error: cannot find symbol
      ReadableMap options, ReadableMap appConfig, Context context) {
      ^
  symbol:   class ReadableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:70: error: cannot find symbol
      ReadableMap options, ReadableMap appConfig, Context context) {
                           ^
  symbol:   class ReadableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:116: error: cannot find symbol
  public static WritableMap mapPutValue(String key, @Nullable Object value, WritableMap map) {
                                                                            ^
  symbol:   class WritableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:116: error: cannot find symbol
  public static WritableMap mapPutValue(String key, @Nullable Object value, WritableMap map) {
                ^
  symbol:   class WritableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:170: error: cannot find symbol
  public static WritableMap readableMapToWritableMap(ReadableMap map) {
                                                     ^
  symbol:   class ReadableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:170: error: cannot find symbol
  public static WritableMap readableMapToWritableMap(ReadableMap map) {
                ^
  symbol:   class WritableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:177: error: cannot find symbol
  public static Map<String, Object> toHashMap(ReadableMap readableMap) {
                                              ^
  symbol:   class ReadableMap
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java:182: error: cannot find symbol
  public static List<Object> toArrayList(ReadableArray readableArray) {
                                         ^
  symbol:   class ReadableArray
  location: class RCTConvertFirebase
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/NativeEvent.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java:25: error: cannot find symbol
  private WritableMap eventBody;
          ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseEvent
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java:28: error: cannot find symbol
  public ReactNativeFirebaseEvent(String eventName, WritableMap eventBody) {
                                                    ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseEvent
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java:33: error: cannot find symbol
  public ReactNativeFirebaseEvent(String eventName, WritableMap eventBody, String firebaseAppName) {
                                                    ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseEvent
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEvent.java:45: error: cannot find symbol
  public WritableMap getEventBody() {
         ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseEvent
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/NativeEvent.java:25: error: cannot find symbol
  WritableMap getEventBody();
  ^
  symbol:   class WritableMap
  location: interface NativeEvent
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:28: error: package com.facebook.react.common does not exist
import com.facebook.react.common.LifecycleState;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:29: error: package com.facebook.react.modules.core does not exist
import com.facebook.react.modules.core.DeviceEventManagerModule;
                                      ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:33: error: package javax.annotation does not exist
import javax.annotation.Nullable;
                       ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:85: error: cannot find symbol
  public static WritableMap getExceptionMap(Exception exception) {
                ^
  symbol:   class WritableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:104: error: cannot find symbol
  public static void sendEvent(final ReactContext context, final String eventName, Object body) {
                                     ^
  symbol:   class ReactContext
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:252: error: cannot find symbol
  public static WritableMap jsonObjectToWritableMap(JSONObject jsonObject) throws JSONException {
                ^
  symbol:   class WritableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:277: error: cannot find symbol
  public static WritableArray jsonArrayToWritableArray(JSONArray jsonArray) throws JSONException {
                ^
  symbol:   class WritableArray
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:299: error: cannot find symbol
  public static WritableMap mapToWritableMap(Map<String, Object> value) {
                ^
  symbol:   class WritableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:309: error: cannot find symbol
  private static WritableArray listToWritableArray(List<Object> objects) {
                 ^
  symbol:   class WritableArray
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:318: error: cannot find symbol
  public static void arrayPushValue(@Nullable Object value, WritableArray array) {
                                                            ^
  symbol:   class WritableArray
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:373: error: cannot find symbol
  public static void mapPutValue(String key, @Nullable Object value, WritableMap map) {
                                                                     ^
  symbol:   class WritableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:433: error: cannot find symbol
  public static WritableMap readableMapToWritableMap(ReadableMap map) {
                                                     ^
  symbol:   class ReadableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:433: error: cannot find symbol
  public static WritableMap readableMapToWritableMap(ReadableMap map) {
                ^
  symbol:   class WritableMap
  location: class SharedUtils
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/SharedUtils.java:27: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.*;
^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java:25: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java:73: error: cannot find symbol
  public WritableMap getAll() {
         ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseMeta
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:25: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactContext;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:26: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:27: error: package com.facebook.react.modules.core does not exist
import com.facebook.react.modules.core.DeviceEventManagerModule;
                                      ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:39: error: cannot find symbol
  private ReactContext reactContext;
          ^
  symbol:   class ReactContext
  location: class ReactNativeFirebaseEventEmitter
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:47: error: cannot find symbol
  public void attachReactContext(final ReactContext reactContext) {
                                       ^
  symbol:   class ReactContext
  location: class ReactNativeFirebaseEventEmitter
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java:104: error: cannot find symbol
  public WritableMap getListenersMap() {
         ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseEventEmitter
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseJSON.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseJSON.java:21: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseJSON.java:92: error: cannot find symbol
  public WritableMap getAll() {
         ^
  symbol:   class WritableMap
  location: class ReactNativeFirebaseJSON
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/NativeError.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/reactnative/java/io/invertase/firebase/interfaces/NativeError.java:31: error: cannot find symbol
  WritableMap getUserInfo();
  ^
  symbol:   class WritableMap
  location: interface NativeError
/Users/spurge/Music/ghoshak_owner/node_modules/@react-native-firebase/app/android/src/main/java/io/invertase/firebase/common/UniversalFirebaseModule.java:54: error: cannot find symbol
  @OverridingMethodsMustInvokeSuper
   ^
  symbol:   class OverridingMethodsMustInvokeSuper
  location: class UniversalFirebaseModule
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':@react-native-firebase_app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_lin
System:
    OS: macOS 12.6
    CPU: (10) x64 Apple M1 Pro
    Memory: 25.54 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.17.4 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 6.14.14 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.10.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16.1 - /usr/bin/javac
    Python: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0 
    react-native: 0.62.2 => 0.62.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
berkandiler commented 2 years ago

same issue

ahmettersoz commented 2 years ago

same issue can you check ++

haletosun3 commented 2 years ago

**> Configure project :app --W- The variant: release, Use the json file: /Users/haletosun/Desktop/env/test/ibmb-ui/android/app/agconnect-services.json WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.5.4. Android SDK Build Tools 28.0.3 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :@react-native-firebase_app:compileDebugJavaWithJavac FAILED**

onurzorluer commented 2 years ago

+1

mikehardy commented 2 years ago

Hey all: https://github.com/facebook/react-native/issues/35210

Make sure you have that all fixed.

react-native-firebase has NO COMPILE ERRORS. I was working on some items this weekend and did releases even, it worked fine after ingesting the changes from https://github.com/facebook/react-native/issues/35210

Please make sure you are up to date then try again.

Additionally - please know that we assume you are on up to date versions here (that is, of the react-native-firebase modules and of react-native). Please make absolutely sure that's the case before opening an issue.

I do not reproduce build failures so in the absence of a reproduction on current versions - yes, some from this weekend I will close this.

If you can provide a minimal reproduction on current versions I can reopen: https://stackoverflow.com/help/minimal-reproducible-example

NantEiPhyoThet commented 2 years ago

Has anyone here who are having this build failed issue tried to build signed bundle/apk for android? Because the solutions here react-native/issues/35210 and (expo/expo@02fb0a9), it makes the build for android successful on emulator and on real device. But my signed bundle/apk is crashing as soon as it's downloaded and opened. I'm on RN 0.66 and I've tried gradle 6.9.0, 7.0.1 and 7.2.1 and my signed bundle is still crashing with no error messages shown.

mikehardy commented 2 years ago

We are in react-native-firebase, so I assume crashlytics is available to you, and you can post a crash stacktrace - they are an expectation when people say an app crashed, a crash stacktrace is a basic necessity to diagnose things. I would assume expo support will be more useful then this repository though, as there is no known reason why builds from this repository using up to date react-native (that is: with the patches from the weekend) won't compile and run. They will work, ergo this sounds like an Expo issue still

minhchienwikipedia commented 11 months ago

I got the same issue like https://github.com/invertase/react-native-firebase/issues/7334 but there is no way to resolve this issue.

mikehardy commented 11 months ago

@minhchienwikipedia please don't revive issues this old - the issue is more than a year closed with no activity so there is a very very low chance it is actually related to anything happening.

Please don't post a problem without posting sufficient information to help https://stackoverflow.com/help/how-to-ask or you consume the resources you want to help you (that is: maintainer time, looking at your comment) but without any ability to do anything so it is time misspent

Please ask for help with enough information and with a reproduction or steps to reproduce https://stackoverflow.com/help/minimal-reproducible-example