[Compile]: Migrate Plugin to Built-in Kotlin
Operating System
Android
Plugin
share_plus
Version
latest
Flutter SDK
latest
Compilation command
I am using share_plus in my Flutter app.
Starting with Android Gradle Plugin (AGP) 9.0, support for applying the Kotlin Gradle Plugin (KGP) has been removed. Because this plugin applies KGP, it causes a compilation error that prevents my app from building. Here is an example of the error Issue #181383.
Flutter has temporarily added support to allow KGP while apps and plugins migrate to AGP 9.0+, but this support will be removed in a future version of Flutter.
Please migrate this plugin to use built-in Kotlin to ensure your plugin users can successfully build their apps in future versions of Flutter.
Here is the Flutter migration guide for plugin authors.
Please be respectful and mindful of the plugin repository's rules and code of conduct when reporting issues and interacting with plugin authors.
For reference, see the Flutter Code of Conduct.
Dart Dependencies
Native dependencies
Compilation Error
x
Flutter Doctor
x
Checklist before submitting a bug
- [x] I searched issues in this repository and couldn't find such bug/problem
- [x] I Google'd a solution and I couldn't find it
- [x] I searched on StackOverflow for a solution and I couldn't find it
- [x] I read the README.md file of the plugin
- [x] I'm using the latest version of the plugin
- [x] All dependencies are up to date with
flutter pub upgrade - [x] I did a
flutter clean - [x] I tried running the example project
I'm using the following and I am also getting the warning when building my app.
package_info_plus: 10.1.0 share_plus: 13.1.0
I'm using Flutter 3.44.1 and AGP 8.11.1
🤦🏻