简体   繁体   中英

Android Maven project on IntelliJ IDEA does not find R class

I'm trying to reference the R class on my code, which is an Android Maven Project created on IntelliJ IDEA 12, but the R class has not been found after compiling the entire Project.

Why? And how to solve this?

Problem solved with the suggestion made by Eugene Kudelevsky on JetBrains forums:

Coluld you please check following:

Go to Project Structure | Modules | choose Android facet to open facet settings. Then open "Compiler" tab. Is "Run 'process-resources' Maven task before Make" selected? I did manage to reproduce the problem in such case only.

http://devnet.jetbrains.net/message/5474227#5474227

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