Pregunta

I have this line in R.java file in class string

    public static final int ΤΧΤ_BYTECODE=0x7f0a0067;
    public static final int ΤΧΤ_EMPTY=0x7f0a0066;
    public static final int ΤΧΤ_EVERY_30_DAYS=0x7f0a004a;
    public static final int ΤΧΤ_EVERY_7_DAYS=0x7f0a0049;
    public static final int ΤΧΤ_EVERY_90_DAYS=0x7f0a004b;
    public static final int ΤΧΤ_EVERY_DAY=0x7f0a0048;

Gives error duplicate field.

Any idea to solve this issue?

I have clean the project also.

ΤΧΤ means TXT but i dont know how this shows

¿Fue útil?

Solución

Check for the encoding of your strings.xml file, ensure it is UTF-8.

Otros consejos

You should never have to open your R.java. The problem is most likely stemming from some resource issue such as a capital letter in a resource name, or an xml issue. Try cleaning the project first. If that doesn't work, you will have to manually check each of your resources (since eclipse doesn't really check that for you). Of course there have been a few times where eclipse has been the problem for me, so a good restart on eclipse will sometimes work.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top