简体   繁体   中英

Drawable is in drawable-mdpi folder but tree in Android project is empty

I just pasted couple of files in drawable-mdpi folder and am able to see them physically in this folder. But I don't see them in my Android project folder. How to update project and why I don't see them?

It is quite possible that Android Studio has not refreshed its directories and, as such, has not added the new resources to the project tree. Try right clicking on the resources directory ("res") and selecting "Synchronize" from the menu option. This should refresh the tree and then the images you added should show up. You can also try cleaning and rebuilding the project ("Build" --> "Rebuild Project" and "Build" --> "Clean Project").

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM