Eclipse does not show XML errors

I already mentioned this question Eclipse Problems View not showing errors anymore But this does not seem to solve my problem.

My current configuration

Windows 7 64-bit Eclipse Java EE IDE for web developers (tried several versions of Juno, Indigo)

Eclipse continues to throw errors "R cannot be resolved by a variable", but does not show errors in xml files.

Quick example

<EditText android:id="@+id/srchUsers" android:layout_width="match_parent" android:layout_height="60dp" android:layout_marginBottom="0dp" android:layout_marginTop="10dp" android:background="@android:color/white" android:ems="10" android:hint="Search Users" android:inputType="text" android:maxLines="1" android:paddingLeft="10dp" android:drawableLeft="@drawable/ic_action_search_black" > 

Popped ic_action_search_black does not exist, but eclipse does not show any errors, except for the terrible "R cannot be resolved". I tried most of the solutions, such as viewing problems, viewing markers, checking for all errors that should be displayed, etc. But nothing happened.

I thought it could be eclipse 64 bit, but 32-bit versions of eclipse on Win 7 64 - but it gives me the same errors.

However, I have another old machine with a 32-bit version of Win 7 with the same eclipse (32 bits); I see errors in the layout (xml) files, and it's pretty easy for me to debug.

I am wasting precious time debugging with my current development machine.

Any help is appreciated.

Eclipse Settings

Window β†’ Settings β†’ Android β†’ Build β†’ Exit is configured to verbose

Taskbar β†’ Content Configuration β†’ Show All Items Marked

Marker Panel β†’ Content Settings β†’ Show All Items Marked

No error is shown

Note that the image shows that R cannot be resolved, the displayed xml errors are not displayed, where there is obviously an xml error.

+6
source share
1 answer

just use this a second time: -

 android:layout="@id/leftText" 

The reason is that you use android:layout="@+id/leftText" second time android:layout="@+id/leftText" - this is the reason id conflict in R.java with the previous one.

Hope this helps you.

0
source

Source: https://habr.com/ru/post/926651/


All Articles