Skip to content

stream_video_flutter v0.11.2: Missing Android native implementation causes build failure #1096

@officialwhatsevr

Description

@officialwhatsevr

The stream_video_flutter package version 0.11.2 declares Android and iOS platform implementations in its pubspec.yaml file, specifying StreamVideoFlutterPlugin as the plugin class for both platforms. However, the actual native Android implementation files are missing from the package distribution. This causes the Flutter plugin registration system to generate code in GeneratedPluginRegistrant.java that attempts to instantiate a non-existent io.getstream.video.flutter.stream_video_flutter.StreamVideoFlutterPlugin class, resulting in a compilation error: error: cannot find symbol - class StreamVideoFlutterPlugin.

The issue occurs because the package's pubspec.yaml incorrectly declares native plugin support when stream_video_flutter is purely a Dart/Flutter UI package that depends on stream_webrtc_flutter for native functionality. The mismatch between the plugin declaration and the actual package contents causes the Android Gradle build to fail with: BUILD FAILED in 1m 3s - Gradle task assembleDevDebug failed with exit code 1. This prevents developers from building and running their Flutter applications that depend on stream_video_flutter. A workaround exists by manually removing the plugin registration from the auto-generated file, but this is not a sustainable solution as the file is regenerated on each flutter clean or flutter pub get.

Additional Details:

Affected Version: 0.11.2
Platform: Android
Error Location: android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:229
Workaround: Manually remove the StreamVideoFlutterPlugin registration from GeneratedPluginRegistrant.java after each build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions