Skip to content

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method start on channel launchdarkly_flutter_client_sdk) #57

@mattbajorek

Description

@mattbajorek

Describe the bug
.start method immediately errors out with MissingPluginException on Android for both simulator and physical device. Is there an extra SDK integration needed?

To reproduce

  1. Add launchdarkly_flutter_client_sdk: ^3.0.1 to pubspec.yaml
  2. After WidgetsFlutterBinding.ensureInitialized(); add:
final ldConfig = LDConfigBuilder(launchDarklyKey, AutoEnvAttributes.Enabled).build();
final ldContext = LDContextBuilder().build();
await LDClient.start(ldConfig, ldContext);

Expected behavior
A clear and concise description of what you expected to happen.

Logs
E/flutter (17494): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method start on channel launchdarkly_flutter_client_sdk)
E/flutter (17494): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7)
E/flutter (17494):
E/flutter (17494): #1 LDClient.startWithContext (package:launchdarkly_flutter_client_sdk/launchdarkly_flutter_client_sdk.dart:106:5)
E/flutter (17494):

Flutter version
>=3.0.6 <4.0.0

SDK version
4.0.1 and 2.1.0

OS/platform
Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions