-6

when i trying rebuild my project in Android Studio,i got error: illegal character: '`' in

public static final int `=0x7f070006;

How to fix this?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

2 Answers2

3

1 - Give your integer variable a name

and

2 - Remove that offending character (it's an integer, not a string).


By the way, it seems you're trying to edit the R.java file.
You should never do that!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
0

what is "`"?

Are you trying to declare a variable name?

A variable name should start with a valid character, lest a unicode one.

try to give a valid name for the variable.

UPDATE

If you are refereing this from R.java, then probably you have given this

`

character in some of the id field. Use Ctrl + Shift + F and paste this character, find where it occurred, remove it for some valid one. Then recompile.

Arun Shankar
  • 2,603
  • 2
  • 26
  • 36