StackOverflow错误Android/Eclipse

ago*_*ony 8 stack-overflow android android-layout android-xml

每次我在res文件夹中添加ab xml布局时,会弹出一个错误,说明logo.xml中出现了问题:java.lang.StackOverflowError,当我点击ok时,Eclipse说:

发生堆栈溢出错误.建议您退出工作台.可能会发生后续错误,并可能在没有警告的情况下终止工作台.有关更多详细信息,请参见.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>
Run Code Online (Sandbox Code Playgroud)

注意:每次我在/ res文件夹中添加Android XML文件时都会弹出错误,有时甚至只是打开/ res文件夹中的xml文件就会弹出.

Dan*_*552 8

刚出现这个问题.当它要求关闭工作台时,回答"否",转到打开的XML文件的图形视图,并使用右上角的组合框更改主题.如果这不起作用,请尝试使用其周围的其他设置.必须是Android图形编辑器中的某种错误.