How to resolve identifier expected error in Resoure file

422 Views Asked by At

Getting error like below

out/target/common/obj/APPS/MtkSystemUI_intermediates/srcjars/android/arch/core/R.java:13911: error: <identifier> expected
    public static final int 1=0x7f0d0000;
                           ^
out/target/common/obj/APPS/MtkSystemUI_intermediates/srcjars/android/arch/lifecycle/R.java:13911: error: <identifier> expected
    public static final int 1=0x7f0d0000;
                           ^
out/target/common/obj/APPS/MtkSystemUI_intermediates/srcjars/android/arch/lifecycle/extensions/R.java:13911: error: <identifier> expected
    public static final int 1=0x7f0d0000;

Can any one tell me what does this error mean.

I am making changes in AOSP code itself for Quick Settings.

Seek any help on this.

1

There are 1 best solutions below

0
Simpl On

A variable name must not start with a digit. You have to rename your variable:

public static final int myvar1=0x7f0d0000;