Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xml error in Eclipse after updating Android SDK Tools

This is the error I'm getting 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 can't see the graphical part of my layout.

Recently, I also added the RootTools library, could that also be the cause?

Thank you!

like image 297
Simon Avatar asked Jul 11 '12 17:07

Simon


1 Answers

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

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

And this was causing the problem. Even if I use the escape character for @ sign preview was not working after SDK update.

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

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

I know it is strange and it may not be acceptable for some apps to have an space infront of it. But that was ok for my app. Hope this helps.

And in design mode, in graphical layout, you have a new icon, (android icon), click and select 8 minimum.

like image 119
akifusenet Avatar answered Oct 04 '22 20:10

akifusenet