taminif
February 14, 2025, 9:04am
1
Will io.flutter.app
be removed in the near future?
I’m trying to look up the FlutterApplication class, but this page says 404 Not Found
https://api.flutter.dev/javadoc/io/flutter/app/FlutterApplication.html
Also, looking at the javadoc, it seems that io.flutter.app has been removed.
If it’s removed in the near future, I’d like to know why it’s being removed, because I need to deal with this in my application.
Thank you!
dominik
February 14, 2025, 11:29pm
2
I found this (FlutterPlayStoreSplitApplication ). Perhaps they had to get rid of the FlutterApplication class?
Last time it was mentioned in the docs is in July 2024
1 Like
taminif
February 15, 2025, 12:03am
3
Thanks!
Excuse me, let me teach that I don’t understand the relationship between FlutterPlayStoreSplitApplication and FlutterApplication (io.flutter.app)
I can now confirm that FlutterApplication will be around until December.
As I also wrote to you on Discord, the package got removed by this recent change which was part of the latest stable Flutter release (3.29.0):
committed 03:22AM - 24 Mar 22 UTC
Which was part of this issue:
opened 12:14AM - 01 Oct 21 UTC
closed 06:21PM - 10 Feb 25 UTC
platform-android
engine
c: proposal
P2
team-android
triaged-android
This issue tracks the removal of the Android embedding v1
For what the alternative would be, I have no idea. Just thought it would provide value to give some context about it here. At least it answers your question:
If it’s removed in the near future, I’d like to know why it’s being removed, because I need to deal with this in my application.
Answer: It is already removed with most recent Flutter stable release.
2 Likes
taminif
February 19, 2025, 8:07am
5
Thanks for reply!
Just thought it would provide value to give some context about it here.
In my application, I use the Application class that inherits FlutterApplication to use Android’s native code. Since Native Code uses ActivityLifecycleCallbacks, I want to register ActivityLifecycleCallbacks in onCreate of FlutterApplication, so I register the Application class to android:name
.
Seems like it’s been fixed now in 3.29.2
opened 08:02PM - 24 Feb 25 UTC
closed 05:02AM - 28 Feb 25 UTC
platform-android
P0
r: fixed
team-android
triaged-android
### Steps to reproduce
App previously compiles and runs fine on 3.27.3. Upgrade… d 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: https://github.com/flutter/flutter/issues/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
<details open><summary>Code sample</summary>
```java
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();
...
```
</details>
### Screenshots or Video
<details open>
<summary>Screenshots / Video demonstration</summary>
[Upload media here]
</details>
### Logs
<details open><summary>Logs</summary>
```console
[Paste your logs here]
```
</details>
### Flutter Doctor output
<details open><summary>Doctor output</summary>
```console
[✓] 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!
```
</details>
Thanks!
I’ll keep an eye on the developments a bit more.