Android Studio Adding image asset not working

扶醉桌前 提交于 2019-12-13 21:25:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!