Repository navigation
Description
Steps to reproduce
this is the same issue as described in #184133 (comment) (can't reopen it)
- use add-to-app with flutter 3.44.2
- depend on flutter_plugin_android_lifecycle 2.0.35 (or any plugin with build.gradle.kts)
- try to build
Expected results
build is successful
Actual results
build fails
e: file:///~/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.35/android/build.gradle.kts:28:26: Unresolved reference 'compileSdkVersion'.
Code sample
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
[✓] Flutter (Channel stable, 3.44.2, on macOS 26.3.1 25D771280a darwin-arm64, locale en) [758ms]
• Flutter version 3.44.2 on channel stable at /Users/yauhen/fvm/versions/3.44.2
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c9a6c48 (12 days ago), 2026-06-10 15:52:41 -0700
• Engine revision 77e2e94
• Dart version 3.12.2
• DevTools version 2.57.0
• Pub download mirror https://pub.dev
• Feature flags: enable-web, no-enable-linux-desktop, no-enable-macos-desktop, no-enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, no-enable-swift-package-manager, omit-legacy-version-file,
enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2.5s]
• Android SDK at /Users/yauhen/Library/Android/sdk/
• Emulator version 36.4.9.0 (build_id 14788078) (CL:N/A)
• Platform android-36.1, build-tools 36.1.0
• ANDROID_HOME = /Users/yauhen/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.10+-117844308-b1163.108)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [1,955ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17C52
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [8ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (3 available) [7.8s]
• Android SDK built for arm64 (mobile) • emulator-5554 • android-arm64 • Android 15 (API 35) (emulator)
• iPhone 16e (mobile) • FB0CA729-3561-4843-B1BF-ECA5B123EF20 • ios • com.apple.CoreSimulator.SimRuntime.iOS-26-3 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 149.0.7827.116
[✓] Network resources [532ms]
• All expected network resources are available.
• No issues found!
Activity
emakar commentedon Jun 22, 2026
the workaround is to add
into
android/build.gradle.kts(or its groovy variant with corresponding syntax)suryaKommana2662 commentedon Jun 23, 2026
@emakar Thanks for providing the additional context and for referencing #184133.
The #184133. issue was closed due to insufficient reproduction information, but this report describes a specific add-to-app scenario using
include_flutter.groovy, along with affected plugin versions and a workaround.keeping this issue open and routing to the
team-androidfor further investigation.github-actions commentedon Jul 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.