0

这就是错误,它一次又一次地产生。我已经清理了我的项目。

 public static final class id {
        public static final int  =0x7f07005b;
        public static final int button1=0x7f070004;
        public static final int button2=0x7f070005;
        public static final int frameLayout1hardMatchup=0x7f070009;

String.xml 没有错误,这里是我的 String.xml。

<string name="hello">Hello World, MemoryCardsActivity!</string>
<string name="app_name">Princess  Memory Cards</string>
<string name="text_name">Congrates</string>
 <string name="text_help">Turn over pairs of matching cards, tap to flip two cards, as the match happens, they get removed from the screen.Try to get all cards match in minimum moves and proceed to next level</string>

而且也没有任何 @+id 类型的错误。还有什么可能是这个原因。任何积极的回应将不胜感激.. :(

4

2 回答 2

2

您缺少变量名

public static final int  = 0x7f07005b;

反而

public static final int variableName = 0x7f07005b;
于 2013-07-26T12:44:24.763 回答
1

我通过更改我的布局 XML 文件之一产生了类似的错误。我变了

android:id="@+id/image_frame"

android:id="@+id/ " 

我看到的这个改变的错误是

public static final int  =0x7f080010; 
// Syntax error on token "int", VariableDeclaratorId expected after this token

这似乎是@codeMagic 所描述的。

于 2013-07-28T00:15:26.427 回答