Using the latest version of Firebase for Flutter and tried running the application. but unfortunately having a load of errors which makes no sense to me.
https://i.stack.imgur.com/ggbZi.png, https://gofile.io/d/b6RmlQ, https://gofile.io/d/FZBg2O, https://gofile.io/d/yCRUcy
The flutter Firebase implementations uses native code under the hood. The errors are stating that the native classes are not found.
This is likely because of a dependency missing.
Try to flutter clean then flutter pub get and check if it works.
Related
I am trying to build my app in react native via Build => Generate signed bundle /APK
The standard gradle sync works perfectly but when it comes to build the AAB file, I get this error without any more specification:
This happened in particular after upgrading Android Studio to the new version "Bumblebee".
I use gradle version 7.4 because 6.9 is not possible due to some plugins complaining about it, they require 7.2 latest. I read that this is a solution for this problem but it does not work for me.
I am completely helpless here as I cannot narrow down the error. So maybe someone has a similar issue with react native and can help out.
I am trying to run an existing react native app on android platform and I am getting the error as in the below image. I have already followed all the steps mentioned under http://invertase.link/android, but I still am facing this error.
I am a complete beginner in react native, have already exhausted all the solutions available on the web and this post is my last resort.
You have to add import io.invertase.firebase.RNFirebasePackage; and new RNFirebasePackage() in the MainApplication.java
In my case I deleted my app from emulator and reinstall that by giving the command (react-native run-android) and that process worked for me.
I had this same exact issue, and the underlying issue was that Invertase's starter project was already ejected from Expo and utilizing native modules. Expo was unable to link those. To integrate Firebase in Expo, I redid my project using create-react-native-app, copied all the source JS files over, then followed this guide, doing npm install --save firebase. I had to reinstall all the dependencies again with npm, but integrating Firebase was much easier.
I'm trying to add a Facebook Login on my react native project using react-native-fbsdk library, but I am getting error while running react-native run-android.
Here's the screenshot of the error:
I have clearly followed the installation instructions from their github repo: https://github.com/facebook/react-native-fbsdk
I tried most of the solutions found on SO but couldn't make it run.
I have following versions installed:
react-native#0.47.1
react-native-fbsdk#0.6.0
This is due to breaking change in 0.47.1 which affects most of the native dependencies. In case of react-native-fbsdk, they has yet to release new version. So if you use following version, it would be fine.
react-native : 0.46.4
react-native-fbsdk : 0.6.1
I'm trying to build FirebaseUI for Android sample app. Using latest Android studio (2.2.3) and Gradle plugin (2.2.3).
While trying to do Gradle sync I'm receiving following error:
Error:Could not find method baseline() for arguments [/pathToMyProject/FirebaseUI-Android/library/quality/lint-baseline.xml] on object of type com.android.build.gradle.internal.dsl.LintOptions.
Tried the usual stuff (Clean, Invalidate Cashes/Restart) but no luck. Any idea what is wrong here?
Apparently sample code provided by Google doesn't work with latest stable release of Android Studio. This example compiles without problems on latest beta version of AS.
So I'm running the phonegap build command
phonegap build android
But I'm getting a bunch of Unexpected Token.
I haven't done anything to any of those files so I'm wondering why it's throwing those errors.
You can use build.phonegap.com to build once to verify that there is no problem with the hybrid code. If you can build it there then that indicates there is some issue with the setup like android sdk/version etc or plugins that are installed.