flutter_local_notifications プラグインを使用してアプリに通知を追加しようとしていますが、AndroidInitializationSettings には描画可能なリソースが必要であり、提供されていない場合は次のエラーがスローされます。
"PlatformException (PlatformException(INVALID_ICON, The resource could not be found. Please make sure it has been added as a drawable resource to your Android head project., null))"
問題は、Android ヘッド プロジェクトがどこにあるかわからないことです。
ベストアンサー1
上記の回答方法で解決できたことを願っていますが、私は既存のアプリアイコンを使用する別の方法で解決しました。
var initializationSettingsAndroid =
new AndroidInitializationSettings('@mipmap/ic_launcher');