问题
I'm trying to add an image in Android studio by right clicking on the drawable folder->new->Image Asset, I add an Action Bar and Tab Bar icon with a custom image and I click finish and it looks like its doing something but nothing appears in the drawable folder. I'm also unable to reference the new image name in any xml. What's funny is if I go to re-add this image, it says the image already exists and it will be overwritten. Am I doing something wrong?
回答1:
As @Varun said, Before click on Finish, check save path by click on "Next" button.
回答2:
I create a new project with Android Studio and generate image asset in the new project. It begins to work. I don't know what's wrong with the previous project. Hope it also helps for you.
回答3:
In Background Layer set Asset Type to "Color"
来源:https://stackoverflow.com/questions/40140585/android-studio-adding-image-asset-not-working