How To Fix Your Android Build In Flutter 3.29.0

Ivan Terekhin
Feb 26, 2025

--

So, Flutter team removed the old one approach for plugin registration and totally removed FlutterApplication class.

So, if you had something like:

internal class SomeApplication : FlutterApplication(), PluginRegistry.PluginRegistrantCallback

Now you just need to make it looks like

internal class SomeApplication : android.app.Application()

That’s it. Also, in your plugins, the old one thing with

public static void registerWith(Registrar registrar) {
MethodChannel channel = new MethodChannel(registrar.messenger(), "instagram_share_plus");
final ShareInstagramVideoPlugin instance = new ShareInstagramVideoPlugin();
channel.setMethodCallHandler(instance);
}

Should be gone, as it will not build if it is presents.

https://github.com/milan-ciganovic/instagram_share_plus/pull/8/files

--

--

Ivan Terekhin
Ivan Terekhin

Written by Ivan Terekhin

Mobile developer (Android, iOS, Flutter), AI and GameDev enthusiast. https://www.indiehackers.com/jeuler

No responses yet