Skip to content

Settings and activity

1 result found

  1. 511 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    57 comments  ·  General » SDKs  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Amir Hosseinzadeh supported this idea  · 
    An error occurred while saving the comment
    Amir Hosseinzadeh commented  · 

    As a Linux Ubuntu user with Gnome version 3.36.8 and a Flutter project that utilizes Firebase, I encountered two errors when running the command "flutter run -d Linux" to launch my project in debug mode.

    The error message suggests that while launching a Flutter project in debug mode on Linux, there are two issues encountered.

    Firstly, there is an error related to reading XDG desktop portal settings, with the message "Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found." This error may indicate that the system is unable to find a specific setting related to the desktop portal.

    Secondly, there is an error related to Firebase configuration, with the message "Unhandled Exception: Unsupported operation: DefaultFirebaseOptions have not been configured for Linux - you can reconfigure this by running the FlutterFire CLI again." This error suggests that Firebase options have not been properly configured for the Linux operating system. The error message suggests reconfiguring the FlutterFire CLI to resolve this issue.

    The error stack trace shows that the error is occurring in the FirebaseOptions and FirebaseInitializer files within the Flutter project, specifically in the currentPlatform and initializeApp functions.

    ** (my_project_mobile:70490): CRITICAL **: 18:24:55.290: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

    ** (my_project_mobile:70490): CRITICAL **: 18:24:55.295: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
    [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: DefaultFirebaseOptions have not been configured for linux - you can reconfigure this by running the FlutterFire CLI again.
    #0 DefaultFirebaseOptions.currentPlatform (package:my_project_mobile/app/services/firebase/firebase_options.dart:35:9)
    #1 FirebaseInitializer.initializeApp (package:my_project_mobile/app/services/firebase/amirhome_firebase.dart:12:39)
    #2 main (package:my_project_mobile/main.dart:12:29)
    #3 _runMain.<anonymous closure> (dart:ui/hooks.dart:131:23)
    #4 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297:19)
    #5 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)