e: /home/user/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/wifi_flutter-0.1.0+1/android/src/main/kotlin/
com/weplenish/wifi_flutter/WifiFlutterPlugin.kt: (27, 54):
Type mismatch: inferred type is Activity? but Activity was expected
FAILURE: Build failed with an exception
This plugins wifi_flutter use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Hi everyone,
Also show warning
Thanks,
Ravinder