Skip to content

[πŸ›] Expo 54/ @react-native-firebase/app: 23.5.0 is generating the wrong packageImportPath on androidΒ #8761

@valdioflorio

Description

@valdioflorio

Issue

When using expo with autogenerated folders I am getting the wrong packageImportPath for android.

Steps to reproduce

  • Create a react native expo project with the following configuration
  • run expo prebuild
  • run expo run:android
  • check the file android/build/generated/autolinking/autolinking.json
  • 🚨 Issue: packageImportPath": "import io.invertase.firebase.ReactNativeFirebaseAppPackage;"
  • Must be packageImportPath": "import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;"

This I have confirmed with an older version of the dependency that was manually linked into the project. The current setup is a WIP migration from react-native bare-bone project into expo setup with "newArchEnabled": true

package.json

    "@react-native-firebase/app": "23.5.0",
    "@react-native-firebase/app-check": "23.5.0",
    "expo": "~54.0.21",
    "react-native": "0.81.5",
    "react": "19.1.0",

expo app.json

   "newArchEnabled": true,
 .....

      [
        "expo-build-properties",
        {
          "android": {
            "buildToolsVersion": "36.0.0",
            "compileSdkVersion": 36,
            "targetSdkVersion": 36,
            "minSdkVersion": 28,
          },
          "ios": {
            "useFrameworks": "static"
          }
        }

Android Crash

When running expo run:android the following error is visible in the build phase

android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:26: error: cannot find symbol
import io.invertase.firebase.ReactNativeFirebaseAppPackage;
                            ^
  symbol:   class ReactNativeFirebaseAppPackage
  location: package io.invertase.firebase

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions