Closed emptyway closed 5 years ago
If I'm not mistaken the starter is not ready for v6 at all. I think you'd have to do a v6 branch, follow the react-native-firebase v5x -> v6 update instructions, then propose a PR back upstream so they could have a v6 branch
I found a typo in my MainApplication.java
I had to rename this
import io.invertase.firebase.modules.app.ReactNativeFirebaseAppPackage;
to this
import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;
No idea where the extra modules
come from. On this clean project, I only used yarn add
and react-native link
commands
Looks like this has come from the rnpm config object from each of the package.json files for each of the packages in /packages 🙈, these configs can be removed now if someone would like to send a PR, otherwise I'll pick this up later next week
I'm working on a new template to generate RN + Firebase projects for v6 here: https://github.com/invertase/react-native-firebase-template - I'll move it into the main repo once I'm happy with it 😅
Fixed this in the 6.0.0-alpha.9
release, thanks. No need to update from your current version - issue only occurred when calling link
.
I had a similar issue doing:
npm install --save @react-native-firebase/app@alpha
react-native link @react-native-firebase/app
The entry in MainApplication.java was
import io.invertase.firebase.ReactNativeFirebaseAppPackage;
And got the same type of error as above:
...MainApplication.java:7: error: cannot find symbol
import io.invertase.firebase.ReactNativeFirebaseAppPackage;
When I saw this post I tried changing it to
import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;
which enabled the build to complete successfully.
I'm on react-native-firebase 6.0.0-alpha.22.
If someone else still getting this error,
installed v6 just a while ago, got the same error,the module keyword was not there, instead it was
import io.invertase.firebase.ReactNativeFirebaseAppPackage;
changed it to :
import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;
and it worked.
add this line: implementation project(':react-native-firebase'); in build.gradle :
dependencies { implementation project(':react-native-firebase')
add this line: implementation project(':react-native-firebase'); in build.gradle :
dependencies { implementation project(':react-native-firebase')
in my case implementation project(':@react-native-firebase_app')
did the job (in build.gradle file)
Issue
Cant compile because App library isn't resolved in Android
Steps to reproduce:
Output error:
Project Files
Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Android API 28
10.14.4
N/A
N/A
react-native run-android
React Native
version:0.59.1
React Native Firebase
library version:ADD_SOMETHING_HERE
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A