When I run my project I get the following error
Error:(3433, 37) error: ';' expected
Error:(3433, 42) error: identifier expected
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Ther error is in R.java file from the following line of code, in third line
public static final int fill_vertical=0x7f0e0033;
public static final int fixed=0x7f0e004a;
public static final int font size=0x7f0e00d6;
public static final int greyStar=0x7f0e00ca;
The error is coming on the 3rd line where there is a gap between font and size. I am not able to understand why and how that gap is coming.
I was actually creating String variables in string.xml file and setting those values on the textview in a layout file when suddenly this error crept in.
I've tried cleaning the project and rebuilding it, but nothing has helped.
Can anyone help.
public static final int font size =is not valid.ctrl + shift + f> search forfont size. Is there anywhere in your code or XML files where you've declared it with the space? It won't be in this file sinceR.javais automatically generated.