Android XML 错误消息 [英] Android XML error message

查看:34
本文介绍了Android XML 错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次打开 XML 布局文件时,都会显示以下错误消息:

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

在检查 Android SDK"期间发生内部错误.java.util.ConcurrentModificationException

错误消息很容易消除,我的程序仍然运行良好.我尝试重新启动 Eclipse 和我的计算机,但没有成功.问题并不总是存在,但我不完全确定它何时开始发生.任何想法或链接表示赞赏!

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>

确切的错误信息

推荐答案

检查您的 AndroidManifest.xml 并查看目标 SDK 版本是否与您下载的最新 Android SDK 构建工具匹配.

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

如果平台可用并且最大 API 级别是否匹配,还要检查 Window -> Preferences -> Android 下的 Eclipse.

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

这篇关于Android XML 错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆