Describe your issue here
When I am adding React-Native-Firebase to my existing project. Then Build gets Failed with error: Cannot Found Symbol RNFirebasePackage. This problem is occurring due to react-native link react-native-firebase.
The link command adds
import io.invertase.firebase.RNFirebaseAdMobPackage;
instead of
import io.invertase.firebase.RNFirebasePackage;
and also in protected List
Click To Expand
#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like:
# N/A
#### `AppDelegate.m`:
// N/A
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`:
// N/A
#### `android/app/build.gradle`:
// N/A
#### `android/settings.gradle`:
// N/A
#### `MainApplication.java`:
// N/A
#### `AndroidManifest.xml`:
<!-- N/A -->
Click To Expand
**`react-native info` output:**
OUTPUT GOES HERE
- **Platform that you're experiencing the issue on**:
- [ ] iOS
- [ ] 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:**
- `e.g. 5.4.3`
- **`Firebase` module(s) you're using that has the issue:**
- `e.g. Instance ID`
- **Are you using `TypeScript`?**
- `Y/N`
Think react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]
React Native Firebase
and Invertase
on Twitter for updates on the library.Same here ... RN 0.59.10 and RNF 5.3.1
I tried several times but nothing worked
... still researching
@robleds i am having the same issue .have you found solution?
The temporary solution would be
In MainApplication.java
Replace
import io.invertase.firebase.RNFirebaseAdMobPackage;
With
import io.invertase.firebase.RNFirebasePackage;
And Replace
new RNFirebaseAdMobPackage();
With
new RNFirebasePackage();
RNFirebasePackage
did not work for me
@ravikiran6763: What error did you get?
@ravikiran6763: What error did you get?
import io.invertase.firebase.RNFirebaseAdMobPackage;
^
symbol: class RNFirebaseAdMobPackage
location: package io.invertase.firebase
1 error
FAILURE: Build failed with an exception.
@ravikiran6763
Remove that import and add:
import io.invertase.firebase.RNFirebasePackage;
and if is in here, also remove it:
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(new MainReactPackage(), new RNGestureHandlerPackage(),
);
}
@robleds i am having the same issue .have you found solution?
Yes @muhammadsarim555 ... I did remove iOS and Android folder, clean project cache and did react-native eject
and react-native link
to start from beginner.
I followed these steps:
https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh
I didn't run the script. I just followed each line step by step.
Works.
Same here. RN v0.59.10 and RNF v5.3.1
this work
it should be just a typo
Hello 馃憢, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.
Most helpful comment
The temporary solution would be
In MainApplication.java
Replace
import io.invertase.firebase.RNFirebaseAdMobPackage;
With
import io.invertase.firebase.RNFirebasePackage;
And Replace
new RNFirebaseAdMobPackage();
With
new RNFirebasePackage();