简体   繁体   中英

Android Studio fails to generate essential project files

When I used Android Studio to make some projects, Activity.java, R.style, Manifest file and some other essential files are not generated.

I searched Google, but I was unable to find a solution for this problem. Has anyone encountered this problem before and come up with a solution?

Delete any import to an R.java class. Move your cursor to a reference to any button/layout/string/whatever-coming-from-R, delete the last character, and hit ctrl+space . Eclipse will try to codehint you, automatically importing the correct R.java . Just to keep it cool, clean and rebuild.

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