public static final int =0x7f020143; <identifier> missing infront of equal sign, how to solve???

public static final int =0x7f020143; // before the equal sign is it supposed to be an or something, but randomly after trying to deploy my project, this error came up, and the error directed me to this line of code which caused the error --> "public static final int =0x7f020143;". How would I solve this?

where it is located:
in the R.java file,

public static final class drawable {
public static final int =0x7f020143; // <---
public static final int abc_ab_share_pack_mtrl_alpha=0x7f020000;
public static final int abc_action_bar_item_background_material=0x7f020001;
public static final int abc_btn_borderless_material=0x7f020002;
public static final int abc_btn_check_material=0x7f020003;
public static final int abc_btn_check_to_on_mtrl_000=0x7f020004;
public static final int abc_btn_check_to_on_mtrl_015=0x7f020005;
public static final int abc_btn_colored_material=0x7f020006;

Best Answer

Answers

  • Jane_NatalieJane_Natalie Member ✭✭✭

    note: I can run the exact same solution on ios without any issues, the error only affects the android project.

  • Jane_NatalieJane_Natalie Member ✭✭✭

    This is the full error message

    Error error: expected
    public static final int =0x7f020147;
    1 error BoardGamesMadeEasy.Android C:\Users\user\source\repos\BoardGamesMadeEasy\BoardGamesMadeEasy\BoardGamesMadeEasy.Android\obj\Debug\android\src\com\companyname\boardgamesmadeeasy\R.java 3014

  • Jane_NatalieJane_Natalie Member ✭✭✭

    It worked, thanks!

    @BillyLiu said:
    @ThankYou

    Have you tried to clean, manually delete the bin and obj folders, then rebuild the project?

Sign In or Register to comment.