奇怪的XML错误:不正确的行结束不正确、奇怪、错误、结束

2023-09-04 08:56:33 作者:北栀怨寒

我还没有,因为1个星期前使用的Eclipse。今天,我开始和我注意到它加载缓慢。当它开始了它促使这样的:

I haven't used Eclipse since 1 week ago. Today I started it and I noticed that it loaded slowly. When it was started it prompted this:

我的吼声是Android系统,也许Eclipse已经更新的东西,所以我更新到最新的ADT。现在我有同样的错误,但我有一个特别大的错误,我不知道这是否是因为previous错误。我曾尝试一下新的功能,如何将XML层看起来在很多设备。我曾尝试与2层,现在程序不编译,因为它说:

I thougth that maybe Eclipse has updated something of Android so I updated to the newest ADT. Now I have the same error but I have an extra big error that I don't know if it's because the previous error. I have tried the new feature of look how an xml layer looks in many devices. I have tried with 2 layers and now the program doesn't compiles because it says:

不正确的行结束:发现回车(\ r)没有相应的换行符(\ n)

Incorrect line ending: found carriage return (\r) without corresponding newline (\n)

一个XML的错误是在这一行:

The error for one xml is in this line:

     android:layout_height="wrap_content">    

和另一种是在

    android:orientation="horizontal">

跆拳道发生了什么?我没有改变任何东西,也救了它和1个星期前一切正常。

wtf has happened? I didn't change anything nor saved it and 1 week ago all was fine.

推荐答案

我刚刚得到了同样的恼人的问题。 我所做的就是复制整个code到记事本中。 然后,从记事本,粘贴到XML领域。 我知道,这听起来很愚蠢,但它的工作,我不知道为什么-__-

I just got the same annoying problem. What I did was copying the entire code into notepad. Then from notepad, paste it back into the xml field. I know, it sounds stupid, but it worked and I have no idea why -__-"

 
精彩推荐
图片推荐