android - Magic behind R.java file -


recently have been having quite problems r.java file. have decided backup , delete file see happens.

nothing happened, created empty r.java file , hoped best. eclipse seems figure out file tampered , issues warning:

r.java modified manually! reverting generated version! 

and that's there is. tried building manually got no results.

so, have 2 questions:

  1. what should force eclipse regenerate file
  2. what happening here? how file created, code generating file?

i appreciate help. usual problem occurred few days before deadline :)

i had problem getting android app compile, seemingly inexplicable errors failure generate r.java.

the problem caused killing android emulator during build. don't that! clue appearance of several left on *.out.xml files.

the solution select project, click project->clean, , manually delete *.out.xml files. click run->run , have successful build.

one more thing: i'm using eclipse. had make sure project selected in package explorer, , not random source file. easy not notice!


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -