Skip to content

Error running android app After updating to flutter 3.29.0 with flutter_plugin_android_lifecycle-2.0.19 #163960

@Durgesh9M

Description

@Durgesh9M

Steps to reproduce

C:\Users\arun\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_plugin_android_lifecycle-2.0.19\android\src\main\java\io\flutter\plugins\flutter_plugin_android_lifecycle\FlutterAndroidLifecyclePlugin.java:19: error: cannot find symbol
@nonnull io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
1 error
3 warnings

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_plugin_android_lifecycle:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 59s

Actual results

I have updated to new flutter latest stable version
Flutter is already up to date on channel stable
Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 35c388a (13 days ago) • 2025-02-10 12:48:41 -0800
Engine • revision f73bfc4
Tools • Dart 3.7.0 • DevTools 2.42.2

I'm unable to run my app again. I have fixed few issues by myself but this issue is arising. I searched on ai tools but they are suggesting like to update the package flutter_plugin_android_lifecycle to new 2.1.0 but I don't have such package in my pubspec.yaml

Logs

┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Consult the error logs above to identify any broken plugins, specifically those containing │
│ "error: cannot find symbol..." │
│ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed │
│ references to the v1 embedding. │
│ To fix this error, please upgrade your current package's dependencies to latest versions by │
│ running flutter pub upgrade. │
│ If that does not work, please file an issue for the problematic plugin(s) here: │
https://github.com/flutter/flutter/issues
└────────────────────────────────────────────────────────────────────────────────────────────

Flutter Doctor output

[√] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.22000.1574], locale en-US)
[√] Windows Version (11 Home Single Language 64-bit, 21H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc1)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.70.2)
[√] Connected device (3 available)
[√] Network resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions