【发布时间】:2014-09-19 22:33:24
【问题描述】:
每次打开 XML 布局文件时,都会显示以下错误消息:
An internal error occurred during: "Check Android SDK".
java.util.ConcurrentModificationException
错误消息很容易消除,我的程序仍然运行良好。我尝试重新启动 Eclipse 和我的计算机,但没有成功。问题并不总是存在,但我不完全确定它何时开始发生。任何想法或链接表示赞赏!
示例 XML 文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
tools:context="${packageName}.${activityClass}" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_title_main"
android:text="@string/app_name" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_subtitle_main"
android:text="@string/app_desc" />
</LinearLayout>
确切的错误信息
【问题讨论】:
-
如果没有更多信息,任何人都无法提供帮助。发布导致错误的 xml 代码
-
我拥有的每个 XML 布局文件都会导致错误,无论多么简单 - 不确定这是否有助于发布:(
-
在这种情况下复制任何一个基本的 xml 文件。
-
或张贴准确完整的错误信息截图
-
上面贴出了整个错误消息,它显示为一个弹出窗口。我已经更新了一个示例 XML 文件
标签: android xml xml-parsing