Skip to content

[Android MAUI] No HttpSenderProvider found on classpath - Session Replay fails to initialize on Android #494

@LosDavidos

Description

@LosDavidos

Environment

  • LaunchDarkly.SessionReplay version: 0.9.2
  • Platform: .NET MAUI Android
  • Target framework: net10.0-android
  • Android SDK: 35, min SDK: 31
  • Device: Motorola G35 5G (Android 14)

Description

Session Replay fails to initialize on Android. The same configuration works correctly on iOS.

Steps to reproduce

  1. Add LaunchDarkly.SessionReplay 0.9.2 to a .NET MAUI project
  2. Configure plugins as described in the documentation:
builder.Plugins(new PluginConfigurationBuilder()
    .Add(new ObservabilityPlugin(new ObservabilityOptions(
        isEnabled: true,
        serviceName: "my-app")))
    .Add(new SessionReplayPlugin(new SessionReplayOptions(isEnabled: true))));
  1. Run on Android

Expected behavior

Session Replay initializes successfully and sessions appear in the LaunchDarkly portal.

Actual behavior

Plugin fails to register with the following error:

LaunchDarkly.Sdk: Error registering plugin LaunchDarkly.SessionReplay:
Java.Lang.IllegalStateException: No HttpSenderProvider found on classpath.
Please add dependency on opentelemetry-exporter-sender-okhttp
or opentelemetry-exporter-sender-jdk
at LDObserveAndroid.ObservabilityBridge.Start(...)
at LaunchDarkly.SessionReplay.LDNative.Start(...)
at LaunchDarkly.Observability.PluginOrchestrator.InitializeAll()
at LaunchDarkly.Observability.SessionReplayPlugin.Register(ILdClient client, EnvironmentMetadata metadata)

Additional context

The NuGet package at runtimes/android/native contains multiple .aar files including lib-release.aar (650 KB), but opentelemetry-exporter-sender-okhttp appears to be missing from the bundled dependencies. There is no way to add this dependency manually via AndroidMavenLibrary as the required version is unknown.

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