Reputation: 3447
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:
Upvotes: 30
Views: 23797
Reputation: 129
Creating a brand new project helped in my case
new flutter project
Upvotes: -1
Reputation: 23
I am writing my React Native project, and for me has been worked this way:
Upvotes: 0
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
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
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
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
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
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