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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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