Eclipse xml error after updating Android SDK Tools

This is the error I get in my layout XML files:

error!
NotFoundException: null
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- TextView (Change to android.widget.TextView, Fix Build Path, Edit XML)

This happened after updating my SDK tools in Eclipse. However, I can still compile my code, I just don’t see the graphic part of my layout.

Recently, I also added the RootTools library, can this also be the reason?

Thank!

+5
source share
5 answers

I had the same problem. And it turned out to be very strange. In my strings.xml file I had a line

<string name="email_seperator_char">\@</string>

And that caused a problem. Even if I use the escape character to preview @sign, the SDK did not work after the update.

SOLUTION: I just added a space in front of it and voila, it worked.

<string name="email_seperator_char"> \@</string>

, , . . , .

, , ( Android), 8 .

+6

, , , . Android- API 7 (Android 2.1) API 8 (Android 2.2).

, 2.1, - TextView android:textAppearance="?android:attr/textAppearanceMedium". , , ( , ). API .

, , Android , API Project Build Target.

+1

, API, andorid , API 7. , .

0

. , , , , Android 4.0.3. (ROOT > > ), Android 4.0.3 SDK 15.

If I set up the layout rendering on Android 2.2 and leave everything else on Android 4.0.3, SDK 15, then everything seems to work fine.

Hope this is helpful.

0
source

There is something wrong with your TextView.

I wrote this once, which causes a problem

android:textAppearance="@android:attr/textAppearanceLarge"

Eclipse cannot say what is wrong, but the design failure looks when I realized that I am changing @ to?

android:textAppearance="?android:attr/textAppearanceLarge"

then everything normalizes

0
source

All Articles