10

I want to manipulate my App's icon using "Image Asset Studio", usually I start it by following these instructions:

1- In the Project window, select the Android view.

2- Right-click the res folder and select New > Image Asset...

so I reach this window:

enter image description here

but for some reason I don't see this option "Image Asset" at the "New" menu.

NOTE: If I create a new project then I can see "New > Image Asset" normally.

Update:

I'm clicking on this directory. enter image description here

I run this android studio on Ubuntu 18.04:

Android Studio 3.5 Build #AI-191.8026.42.35.5791312, built on August 9, 2019 JRE: 1.8.0_202-release-1483-b49-5587405 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-62-generic

enter image description here

Jehad Nasser
  • 3,227
  • 5
  • 27
  • 39

2 Answers2

8

There is actually an issue filed in GitHub related to this.

In your case, it seems that you treat a Flutter project as a regular Android project. AFAIK, Flutter projects are not Android projects.

So one of the workaround is also available:

open android studio File->Open folder->navigate to your flutter project and select the Android folder. Wait for it to sync, then navigate inside the Android studio folder and find the res folder right click on it and choose New you will see the Image asset studio.

Also take note of this:

don't open the whole project of flutter using Android studio just open the android folder found inside the flutter project with Android studio, so the Android studio can treat it as a Android project rather than flutter project, which will give you all Android features like the one ur looking for #image asset studio

And you can also check this blog post about changing your Flutter app icons. And this YouTube video. You will only need your desired image for the icon and App Icon Generator.

To summarize what was written in the blog and discussed in the YouTube post, here are the simple steps you need to follow:

Step 1: Visit appicon.co and upload your intended image to convert to icons, select the types you would like to be generated and click “generate”. This will download a zip folder to your system. (You may skip this step if you have all resolutions in place with you.)

enter image description here

Step 2: Unzip the file. You’ll have two folders by the name of “android” and “Assets.xcassets”.

enter image description here enter image description here

Step 3: Changing icons for Android App. In your Flutter project, move to android/app/src/main/res which has a lot of folders starting with “mipmap-”. Delete all of them. And replace from your downloaded and unzipped AppIcons folder, everything that’s under android.

enter image description here

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65
2

if you right click on res folder and Image Asset is not enabled just follow the following steps they are working for me.

File --> Open and select to open android(which is inside your project) in a new window. Then if you go to the res folder (on the new window) and right click the Image Asset is enabled.

enter image description here

enter image description here

ManChrys
  • 61
  • 6