How to update an outdated plugin in Flutter.

Tiempo de lectura: < 1 minuto

This is the day we are going to update FlutterWallpaperManager library that has not been updated to a new version and is not compatible with Android SDK 35.

Clean Energy - pexels

The first thing we do is find it:

C:\Users\[your_username]\AppData\Local\Pub\Cache\hosted\pub.dev\[library_name]

*Add your username

*Add the library name.

Add the library folder to your project in:

plugins/[library_name]

*If the plugin does not exist, it is created.

And now it is imported as an internal library in pubspec.yaml.

dependencies: flutter_wallpaper_manager: path: plugins/[library_name]

And now you can patch what you need, in my case I have to add the namespace to the plugin, inside of android/build.gradle

android {  namespace "com.flutter_wallpaper_manager"}

Leave a Comment