You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
Error showing:
Failed to build iOS app Error (Xcode): ../../.pub-cache/git/analytics_flutter-6dd36b60c867e7af2433cce3f5db13ae0a08f47e/packages/plugins/plugin_firebase/lib/plugin_firebase.dart:205:27: Error: The argument type 'Map<String, Object?>' can't be assigned to the parameter type 'Map<String, Object>?' because 'Object?' is nullable and 'Object' isn't. Could not build the application for the simulator. Error launching application on iPhone 16.
`
on Android :
`../../.pub-cache/git/analytics_flutter-6dd36b60c867e7af2433cce3f5db13ae0a08f47e/packages/plugins/plugin_firebase/lib/plugin_firebase.dart:205:27: Error: The argument type 'Map<String, Object?>' can't be assigned to the parameter type 'Map<String, Object>?' because 'Object?' is nullable and 'Object' isn't.
'Map' is from 'dart:core'.
'Object' is from 'dart:core'.
parameters: castParameterType(properties));
^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/xkk/Documents/Dev/flutter/bin/flutter'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Thanks for reporting this issue. We’ve attempted to reproduce it on our end but haven't been successful so far. That said, the error you shared appears to originate from the this line in the code: plugin_firebase.dart#L205
Specifically, the method castParameterType(properties) relies on Dart’s inferred types and may throw an error if properties is not exactly of type Map<String, Object?>.
To help us troubleshoot further, could you please provide the following details?
The version of segment_analytics you're using
The version of segment_analytics_plugin_firebase you're using
The actual type of the properties variable passed to castParameterType(properties) – is it typed as Map<String, Object?>, or something else?
Uh oh!
There was an error while loading. Please reload this page.
I've added the plugin but build failes
on iOS :
segment_analytics_plugin_firebase
`
Error showing:
Failed to build iOS app Error (Xcode): ../../.pub-cache/git/analytics_flutter-6dd36b60c867e7af2433cce3f5db13ae0a08f47e/packages/plugins/plugin_firebase/lib/plugin_firebase.dart:205:27: Error: The argument type 'Map<String, Object?>' can't be assigned to the parameter type 'Map<String, Object>?' because 'Object?' is nullable and 'Object' isn't. Could not build the application for the simulator. Error launching application on iPhone 16.
`
on Android :
`../../.pub-cache/git/analytics_flutter-6dd36b60c867e7af2433cce3f5db13ae0a08f47e/packages/plugins/plugin_firebase/lib/plugin_firebase.dart:205:27: Error: The argument type 'Map<String, Object?>' can't be assigned to the parameter type 'Map<String, Object>?' because 'Object?' is nullable and 'Object' isn't.
parameters: castParameterType(properties));
^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 33s
Error: Gradle task assembleDebug failed with exit code 1`
The text was updated successfully, but these errors were encountered: