-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listteam-androidOwned by Android platform teamOwned by Android platform team
Description
Steps to reproduce
- Create scratch app with:
flutter create - Add
firebase_messagingdependency by running:flutter pub add firebase_core firebase_messaging - Try to run the app on Android device/emulator with:
flutter run
Expected results
The build should be successful without any build errors.
Actual results
The flutter run commands fails with Gradle build error.
Code sample
Relavent lines in pubspec.yaml
…
dependencies:
…
firebase_core: ^4.4.0
firebase_messaging: ^16.1.1Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
$ flutter clean && flutter run
Deleting build... 46ms
Deleting .dart_tool... 1ms
Deleting .flutter-plugins-dependencies... 0ms
Resolving dependencies...
Downloading packages...
meta 1.18.0 (1.18.1 available)
Got dependencies!
1 package has newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor.java:136: error: cannot find symbol
+ Arrays.toString(shellArgs.toArray()));
^
symbol: method toArray()
location: variable shellArgs of type FlutterShellArgs
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor.java:139: error: cannot find symbol
ContextHolder.getApplicationContext(), shellArgs.toArray());
^
symbol: method toArray()
location: variable shellArgs of type FlutterShellArgs
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:464: error: cannot find symbol
shellArgs = FlutterShellArgs.fromIntent(mainActivity.getIntent());
^
symbol: method fromIntent(Intent)
location: class FlutterShellArgs
3 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':firebase_messaging:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler output below.
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor.java:136: error: cannot find symbol
+ Arrays.toString(shellArgs.toArray()));
^
symbol: method toArray()
location: variable shellArgs of type FlutterShellArgs
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor.java:139: error: cannot find symbol
ContextHolder.getApplicationContext(), shellArgs.toArray());
^
symbol: method toArray()
location: variable shellArgs of type FlutterShellArgs
/Users/rajveer/.pub-cache/hosted/pub.dev/firebase_messaging-16.1.1/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java:464: error: cannot find symbol
shellArgs = FlutterShellArgs.fromIntent(mainActivity.getIntent());
^
symbol: method fromIntent(Intent)
location: class FlutterShellArgs
3 errors
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights.
BUILD FAILED in 13s
Running Gradle task 'assembleDebug'... 14.0s
Error: Gradle task assembleDebug failed with exit code 1Flutter Doctor output
Doctor output
flutter doctor -v 7.8s Tue Feb 10 22:07:24 2026
[!] Flutter (Channel [user-branch], 3.41.0-1.0.pre-523, on macOS 26.2 25C56 darwin-arm64, locale en-IN) [233ms]
! Flutter version 3.41.0-1.0.pre-523 on channel [user-branch] at /Users/rajveer/sdk/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
• Framework revision 296db8121b (10 hours ago), 2026-02-10 01:41:25 -0500
• Engine revision c1b495daa6
• Dart version 3.12.0 (build 3.12.0-130.0.dev)
• DevTools version 2.54.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, no-enable-uiscene-migration, enable-riscv64
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [989ms]
• Android SDK at /Users/rajveer/Library/Android/sdk
• Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
• Platform android-36, build-tools 35.0.0
• ANDROID_HOME = /Users/rajveer/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [587ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17C52
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [5ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (4 available) [5.7s]
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 16 (API 36) (emulator)
• Rajesh’s iPhone (wireless) (mobile) • 00008030-000149CA1A04802E • ios • iOS 26.2.1 23C71
• macOS (desktop) • macos • darwin-arm64 • macOS 26.2 25C56 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 144.0.7559.133
[✓] Network resources [496ms]
• All expected network resources are available.
! Doctor found issues in 1 category.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listteam-androidOwned by Android platform teamOwned by Android platform team