motleydev
motleydev

Reputation: 3447

How to generate new image asset in Android Studio

All the documentation refers to right clicking on the res folder, choosing new and selecting "new Image Asset" - this option is simply not there. I've tried looking around for it and can't find it anywhere. What am I missing?

Here's what I see:

enter image description here

Upvotes: 30

Views: 23797

Answers (8)

Kristina
Kristina

Reputation: 129

Creating a brand new project helped in my case

old project enter image description here

new flutter project

enter image description here

Upvotes: -1

dima tronciu
dima tronciu

Reputation: 23

I am writing my React Native project, and for me has been worked this way:

  1. Open Android Studio
  2. Select Import Gradle Project from pop up window
  3. Wait Android Studio to finish sync build
  4. After all press second click to res folder -> New -> Image Asset

Upvotes: 0

Maneesh MK
Maneesh MK

Reputation: 395

Go to File -> Sync Project with Gradle Files

Then android studio may ask you to upgrade Gradle and once done, you will be able to see the option for New > Image Asset

Upvotes: 12

Felipe Pinto
Felipe Pinto

Reputation: 179

I had the same issue for some time here.

My issue was that I opened the project in Android Studio pointing the wrong folder. I work in a React Native project and opened the root folder of the project.

The problem was solved after I opened my project in Android Studio pointing to the Android folder inside my React Native project. Then, Android Studio synced the Android project in fact the the option showed up! :)

Hope it works for you.

Upvotes: 17

Brandon Culley
Brandon Culley

Reputation: 1344

I was experiencing the same on Android Studio 3 with the plugin Android Drawable Importer already installed from the plugin respository, and I also needed to update Gradle, which in my case meant updating the build tools by clicking the link in the message that looked like this

Failed to find Build Tools revision 27.0.3
Install Build Tools 27.0.3 and sync project

After an install, and then a lengthy update where Gradle was updating itself and downloading in the background tasks window. I then could see the options for File > New > Image Asset

Upvotes: 0

Fmstrat
Fmstrat

Reputation: 1692

The correct answer to this appears to be to update Gradle. I installed the above plugins, no luck. I ran updates on Android Studio, no luck. It was only after Android Studio asked me to update Gradle, and then the project resynced, that I saw the Image Asset option.

Upvotes: 14

Andy Gix
Andy Gix

Reputation: 191

had the same issue. You are missing a plugin named Android Drawable Importer.

Go to File -> Settings -> Plugins -> Browse Repositories Search for the missing plugin, install and restart Android Studio.

The option for Image Asset should be available after that.

Sorry, I don't have enough reputation to add an image for the steps.

Upvotes: 8

Mohit Kalia
Mohit Kalia

Reputation: 351

Please install missing platform(s) just click on the link and wait for a while to install or download then new Image assit and new vector asset will apear.

Upvotes: 9

Related Questions