2013-07-21 95 views
0

我在我的XML文件中发现了这个编译错误,但我似乎无法发现问题..这个错误实际上是随机出现的,我甚至不记得触摸这个文件,但也许我只是不能看到问题。Gradle:解析XML时出错:格式不正确(无效令牌)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      xmlns:tools="http://schemas.android.com/tools" 
      android:layout_width="match_parent" 
      android:orientation="vertical" 
      android:layout_height="match_parent" 
      android:paddingLeft="@dimen/activity_horizontal_margin" 
      android:paddingRight="@dimen/activity_horizontal_margin" 
      android:paddingTop="@dimen/activity_vertical_margin" 
      android:paddingBottom="@dimen/activity_vertical_margin" 
      tools:context=".MyBetsWindow"> 

<Button 
     android:id="@+id/AddBetButton" 
     android:text="Add Bet" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     /> 

<LinearLayout 
     android:id="@+id/BetListLayout" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:orientation="vertical"> 
</LinearLayout> 


</LinearLayout> 

回答

0

通过我,您的代码有效;该错误不是来自您的布局。

这里是它在做什么上旧的程序,我提出叫ABAR:

It Works !

因此,检查别的东西!

相关问题