How can I use an Adaptive Icon for my Flutter app on Android 8.0 and up? The Create Image Asset dialog in Android Studio says "Project must be built with SDK 26 or later to use adaptive icons", even though my android build.gradle has CompileSDKVersion set to 27. If I define the icon in XML, it doesn't work, it seems to just use the regular legacy app icon.
Can I use Android 8.0 Adaptive Icons for a Flutter app?
7.5k views Asked by Piggeh Person At
1
There are 1 answers
Related Questions in FLUTTER
- Flutter + Dart: Editing name of a tab shows up a black screen
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- Way to get CustomPainter to track face in Camera Flutter MLKit
- flutter Null check error: did not show file and line number
- Creating multiple instances of a class with different initializing values in Flutter
- I want to paste stickers into to my TextField and to show the stickers beside the emojis
- Flutter plugin development android src not opening after opening example
- Module not found when building flutter app for IOS
- How to make barrier area interactive in flutter modal bottom sheet
- Can an RPC result be included in a Supabase select function in Flutter for Data Modeling?
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Flutter web app on Windows -how to support mouse drag for horizontal and vertical scrolling as well as using mouse wheel
- I wrote this time displaying FLUTTER app, How can I improve it?
- Appwrite and / or Spring Boot Backend
- Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work?
Related Questions in ADAPTIVE-ICON
- The icon obtained in 'applicationinfo' is different from the actual desktop icon
- Android ignoring my app icon xml and using default icon
- Android themed (monochrome) icon doesn't appear on release build
- Android adaptive icon only?
- How to remove icon border in Android 12
- Convert android adaptive icon to png in command line
- Android - Adaptive icon wired on Huawei devices
- Expo Android Adaptive Icon Not Appearing
- How to find the current Icon Shape of apps?
- Adaptive icon positioning issue
- AAPT: error: unexpected element <adaptive-icon> found in <manifest>
- Adaptive icons not working in Oreo - why?
- How to implement real time dynamic icon like clock/ calendar app in android?
- Why does Android Studio create the ic_launcher_foreground in res/drawable-v24 and the ic_launcher_background.xml in res/drawable?
- android adaptive launcher icon on honor view 10 phone too large
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
They work perfectly fine.
Solution
To work with the dialog, you will need to open your Android module in Android Studio.
Flutter.dev article
Navigation is the following in the menu bar:
Tools~>Flutter~>Open Android module in Android Studioor right-click anywhere in yourandroidfolder in the project view and selectFlutter~>Open Android module in Android Studio.Now you will be able to use the asset dialog normally.
If it still does not work (this does not happen)
If your dialog does not work in your Flutter project, you can easily create an adaptive icon in an Android project and then copy the necessary file, which are:
ic_launcher_background.xml(drawable), I think that this is located in values if you chose a coloric_launcher_foreground.xml(drawable-v24)ic_launcher.xmland if you created itic_launcher_round.xml(mipmap-anydpi-v26)all
ic_launcher.pngandic_launcher_round.png(mipmap-hdpi to mipmap-xxxhdpi) for legacy support. I suppose that these are not needed if your minimum SDK requirement is higher than 25This would cover everything for me. Now, in your
AndroidManifest.xmlspecifyandroid:icon="@mipmap/ic_launcher"for your application, i.e. in your<application>tag, and if neededandroid:roundIcon:"@mipmap/ic_launcher_round".