每打开一个
XML布局文件,将显示以下错误消息:
内部发生错误:“检查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>
确切的错误信息
解决方法
检查您的AndroidManifest.xml,看看目标SDK版本是否与您下载的最新Android SDK Build工具相匹配.
还要检查Window下的Eclipse – >首选项 – >如果平台可用,并且最大API级别匹配,则为Android.