flutter_local_notifications: The resource ic_launcher could not be found
Answers
-
Step 1:
Add your icon to[projectFolder]/android/app/src/main/res/drawable
(for example ic_launcher.png)Step 2:
Go to[projectFolder]/android/app/src/main/AndroidManifest.xml
and add the attributeandroid:icon="@mipmap/ic_launcher"
inactivity
tag.<activity android:name=".MainActivity" android:icon="@mipmap/ic_launcher" ... > </activity>
Step 3:
and use that name here:final AndroidInitializationSettings initializationSettingsAndroid = AndroidInitializationSettings('@mipmap/ic_launcher');
0
Howdy, Stranger!
Categories
- 83 All Categories
- 15 VoIP
- 7 SIP
- 11 asterisk
- 41 Programming
- 1 Nodejs
- 4 javascript
- 18 PHP
- 8 Codeigniter
- 12 database
- 1 UI/UX
- 2 Flutter
- 25 OS
- 23 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal