-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Steps to reproduce
App previously compiles and runs fine on 3.27.3. Upgraded to Flutter 3.29.0 and app fails to compile with error:
public class App extends FlutterApplication { // <-- error: package io.flutter.app does not exist
Downgrading again to 3.27.3 works fine. I've checked the breaking changes documentation and no mention of any Java Android changes being made that would remove the FlutterApplication class (or .app package).
With 3.29.0, hovering in Android Studio over the import io.flutter. I get a popup with:
io.flutter
Package classes:
Build
BuildConfig
FlutterInjector
Log
Note there is no package class for FlutterApplication. Tapping on the Log class in the popup, I see the following where package io.flutter is located:
Gradle: io.flutter:flutter_embedding_debug:1.0.0-f73bfc4522dd0bc87bbcdb4bb3088082755c5e87 (flutter_embedding_debug-1.0.0-f73bfc4522dd0bc87bbcdb4bb3088082755c5e87-sources.jar)
In 3.27.3 there is an .app package and FlutterApplication class in this library. It appears the code is completely gone?
Linked issue, where I thought it was similar: #163960
Expected results
App should continue to compile, or at least document what breaking change has been made and what people should do now to migrate.
Actual results
Fails to compile.
Code sample
Code sample
package nz.co.electricbolt.appfigurate;
import android.content.res.Resources;
import java.io.File;
import io.flutter.app.FlutterApplication;
...
public class App extends FlutterApplication { // <-- error: package io.flutter.app does not exist
private static final String TAG = App.class.getSimpleName();
...Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3.1 24D70 darwin-arm64, locale en-NZ) [289ms]
• Flutter version 3.29.0 on channel stable at /Users/matthew/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision https://github.com/flutter/flutter/commit/35c388afb57ef061d06a39b537336c87e0e3d1b1 (13 days ago), 2025-02-10 12:48:41 -0800
• Engine revision https://github.com/flutter/flutter/commit/f73bfc4522dd0bc87bbcdb4bb3088082755c5e87
• Dart version 3.7.0
• DevTools version 2.42.2
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,695ms]
• Android SDK at /Users/matthew/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• 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.5+-12932927-b750.29)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) [507ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [63ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [62ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.3) [62ms]
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 83.0.4
• Dart plugin version 243.23654.44
[✓] Connected device (4 available) [5.7s]
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 13 (API 33) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.1 24D70 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.1 24D70 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.127
[✓] Network resources [2.5s]
• All expected network resources are available.
• No issues found!