gpt4 book ai didi

android - StackOverflow 错误 Android/Eclipse

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:07:18 26 4
gpt4 key购买 nike

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

A stack overflow error has occurred. You are recommended to exit theworkbench. Subsequent errors may happen and may terminate theworkbench without warning. See the .log file for more details.

Do you want to exit the work bench?

我不明白为什么。这很烦人和令人沮丧。我该如何解决?

这是 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 文件也会弹出错误。

最佳答案

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

关于android - StackOverflow 错误 Android/Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8844807/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com