user3660175
user3660175

Reputation: 1

error in R.java file

How do I solve this error in my R.java file. I have cleaned the project and set the resources to UTF-8.

public static final int editText-contact=0x7f050073;

it underlines the "dash"(hi-fen) in red. I have tried to edit it but the logcat stated: [2014-05-28 15:46:42 - MIPS_HC] R.java was modified manually! Reverting to generated version!

what other ways that i could remove the error??

I got this error when i changed my @+id/RelativeLayout1 to @+id/addnewadmin. I also changed the ids for my individual components like @+id/textview01 to @+id/textview01_firstN.

Is that a wrong move to do because I am still a beginner in android programming. Please help. Thanks.

Upvotes: 0

Views: 63

Answers (1)

Abdul Fatir
Abdul Fatir

Reputation: 6357

Read Java naming conventions again. You don't use a hyphen in names.

Simply Replace:

editText-contact

with:

editText_contact

Upvotes: 1

Related Questions