D
D
dangerclose2014-06-04 13:29:03
Android
dangerclose, 2014-06-04 13:29:03

R.java file not being created, what's wrong?

I did a project clean and the r.java file is not recreated, I did a project build project, it does not help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Apanasik, 2014-06-04
@dangerclose

What Wednesday? If IntelliJ IDEA, then install the latest version, I didn’t generate R.java on some one either.
In general, if you have an error in .xml files, then the R file will not be generated. Look at your layout files, most likely there is an error.

F
FilGardFoil, 2014-12-14
@FilGardFoil

Same problem, the file disappears and is not generated after clear and build. I use eclipse, the problem is present even when cleaning a new project.

N
NullxWeight, 2014-12-27
@NullxWeight

I had a similar issue. After generating a new project, there were errors in xml files. there were elements and references to R.java at the same time, neither clean nor build created R.java. I cut out all the places with errors in xml files and did a clean + build. As a result, the file appeared.
In general, there are many ways to kill R.java, so try and look.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question