每当我在res文件夹中添加一个xml布局时,就会弹出一个错误提示,说在logo.xml中发生了问题:java.lang.StackOverflowError,当我点击确定后,Eclipse会说:
堆栈溢出错误发生。建议退出工作台。后续的错误可能会发生,并可能会在没有警告的情况下终止工作台。有关更多详细信息,请参阅.log文件。
我不知道为什么。这很烦人和令人沮丧。如何解决?
这是logo.xml:
注意: 每次我在/res文件夹中添加一个Android XML文件时,都会弹出该错误,有时甚至只是打开/res文件夹中的xml文件就会出现这个错误。
堆栈溢出错误发生。建议退出工作台。后续的错误可能会发生,并可能会在没有警告的情况下终止工作台。有关更多详细信息,请参阅.log文件。
我不知道为什么。这很烦人和令人沮丧。如何解决?
这是logo.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageLogo"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:contentDescription="@string/desclogo"
android:scaleType="center"
android:src="@drawable/application_logo" />
</LinearLayout>
注意: 每次我在/res文件夹中添加一个Android XML文件时,都会弹出该错误,有时甚至只是打开/res文件夹中的xml文件就会出现这个错误。