在Eclipse XML错误更新Android SDK工具后 [英] xml error in Eclipse after updating Android SDK Tools

查看:207
本文介绍了在Eclipse XML错误更新Android SDK工具后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我得到的我的布局XML文件中的错误:

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)

这发生在Eclipse更新我的SDK工具后。不过,我还是可以编译我的code,我看不出我的布局的图形部分。

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.

近日,笔者还增加了RootTools库中,可能也有原因吗?

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

感谢您!

推荐答案

我有同样的问题。它原来是一个很奇怪的事情。
在我的strings.xml文件,我有一个行

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>

这是造成问题。即使我用@符号preVIEW转义字符SDK更新后不能正常工作。

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.

和设计模式,在图形布局,你有一个新的图标,(机器人图标),然后选择8最小。

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

这篇关于在Eclipse XML错误更新Android SDK工具后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆