简体   繁体   中英

fields are missing in R.java in android

I add some java classes from other application into my android application.But (some fields missing) in R.java error occurs. I cleaned my project but still the same error. Can anyone help me?

If you only added classes you won't get extra resources along with them. You need to either copy the resources or maybe you can include the other classes as a library.

If you copy the resources the classes you copied may also refer to the old project's R in the import. If so you'll need to remove that line and add your own.

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