-
Notifications
You must be signed in to change notification settings - Fork 28
[Bug] Local Run error on Android after FlutterFlow 4.1.34 #2572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That is the same Error reported on this issue |
@zhengyishen0 Btw, be careful, you just exposed you Api Key and Info for your Firebase DB. I recommend you revoke those keys |
I've fixed this issue with two solutions The best solution import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import '../../firebase_options.dart'; // add this line
Future initFirebase() async {
if (kIsWeb) {
await Firebase.initializeApp(
options: FirebaseOptions(
...
} else {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform, // add this line
);
}
} The run following command to configure the Firebase project if you haven't done it yet. flutterfire configure An alternative way <?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="google_api_key" translatable="false">YOUR_GOOGLE_API_KEY</string>
<string name="gcm_defaultSenderId" translatable="false">YOUR_SENDER_ID</string>
<string name="google_app_id" translatable="false">YOUR_APP_ID</string>
<string name="google_crash_reporting_api_key" translatable="false">YOUR_CRASH_REPORTING_API_KEY</string>
<string name="google_storage_bucket" translatable="false">YOUR_STORAGE_BUCKET</string>
<string name="project_id" translatable="false">YOUR_PROJECT_ID</string>
</resources>
Hope you guys can fix this issue soon in the next update |
Thanks for the reminder. @zeymermontes |
hmm... i updated my ff code and i saw they rolled back a line of code from 4.4 to my project on anrdoid built, so the fix maybe out for now so projects at least build on android. glad i saw this thread, i had tried hunting this down for a while and saw it wasn't just me on the anroid build issues. |
I just managed to do local run and build apk |
It has been working for a while now...most of the time |
This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue. |
Hey @zhengyishen0, sorry about the delayed answer. I was trying to replicate this issue but I couldn’t. Are you still experiencing that? |
After recent updates, the software has been stable. However, there are still several other bugs. I think this issue should be closed now |
Hey @sabatage3, thanks for letting us know. Closing this. |
Has your issue been reported?
Current Behavior
Both the Local Run and the exported project cannot run on Android devices.
Expected Behavior
No error, run the app.
Steps to Reproduce
Hit local run or follow the instruction to export the code and run with flutter.
Reproducible from Blank
Bug Report Code (Required)
ITESls/l7YVgrulB7s7qLcBAhR4mJkQ5a7lF1u1HUQwbIYOvBIwpWszTP0taTc+YTVZAI1qghmEe3MLTifHfN8BcGAyHY4hJws1qERWWVkWRR8WsC6uwVHFQL+dRN32O3ImzmhV7KrZZZVFpig/GSw==
Context
I want to do hot reload testing on the FlutterFlow app. No I can only go back to test using the old test sessions on cloud.
Visual documentation
This is the error message. I got it when I tried to run the exported code manually. Hope it will help.
Additional Info
No response
Environment
The text was updated successfully, but these errors were encountered: