Error in the file R.java "; expected "

1

I'm having a problem in the R.java file. The compiler tells me

  

error: ';' expected

on the following line:

public static final int Go!=0x7f080003;

I think the file R.java has been generated badly I tried removing the exclamation mark to Go but when I compiled it was put back. I do not understand why he asks me to put one; if the semicolon is at the end of the line. Thanks!

    
asked by Mauro Stancato 23.11.2018 в 18:44
source

1 answer

0

In this case you will not solve the problem by editing the file R.java since this file is generated automatically based on the resources that exist in your project.

What you must do is rename your resource and check where it is used to make the name change, avoid using characters other than alpha numeric or uppercase.

  

File-based resource names must contain only lowercase a-z, 0-9, or   underscore

When renaming the resource, as a suggestion to go your file will change the definition of this variable in the file R.java , example:

public static final int go=0x7f080003;
    
answered by 23.11.2018 в 18:48