Search code examples
androidr.java-file

R.java File Showing Error


public static final int @+id/scrollView=0x7f08000f;  

This line is making error in my R.java file. I have tried deleting that R.jav file and rebuild it but still its the same error on these tokens

@+id

This is my error :

Syntax error on tokens, delete these tokens

Why is this token generated in my file? I have also checked my xml files and there is no mistake nor any error.


Solution

  • Seems that you have wrongly written the id in your XMl in wrong format

    Your id in your XML is like this

    android:id="@+id/@+id/scrollView"
    

    You need to make the following change to make it working

     android:id="@+id/scrollView"