Android的XML错误信息错误信息、Android、XML

2023-09-06 13:41:34 作者:谁不曾天真过。

每次我打开一个XML布局文件,错误信息显示以下内容:

Everytime I open an XML layout file, the following error message displays:

过程中发生内部错误。 java.util.ConcurrentModificationException

An internal error occurred during: "Check Android SDK". java.util.ConcurrentModificationException

该错误信息是很容易解雇的,还我的程序仍运行正常。我试图重新启动Eclipse和我的电脑没有成功。这个问题并不是一直在那里,但我不能完全肯定,当它开始发生。任何意见或链接AP preciated!

The error message is easily dismiss-able, and my program still runs fine. I have tried restarting Eclipse and my computer with no success. The problem has not always been there, but I am not entirely sure when it started happening. Any ideas or links are appreciated!

<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>

确切的错误信息

Exact error message

推荐答案

检查您的Andr​​oidManifest.xml中,看看是否有针对性的SDK版本,你已经下载了最新的Andr​​oid SDK构建工具相匹配。

Check your AndroidManifest.xml and see if the targeted SDK version matches the latest Android SDK Build tool you have downloaded.

另外,请在窗口的Eclipse - > preferences - > Android的平台是否可用,如果最大API级别的比赛

Also check Eclipse under Window -> Preferences -> Android if the Platform is available and if the max API level matches.