Dai*_*run 10 xml android xml-parsing
每次打开XML布局文件时,都会显示以下错误消息:
An internal error occurred during: "Check Android SDK".
java.util.ConcurrentModificationException
错误消息很容易被忽略,我的程序仍然正常运行.我试过重启Eclipse和我的电脑没有成功.问题并不总是存在,但我不确定它何时开始发生.任何想法或链接都表示赞赏!
<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>
Run Code Online (Sandbox Code Playgroud)

好吧,你的代码没问题,但我不确定为什么会出现错误。您可以尝试一些方法,因为错误要求您检查“android SDK”
在菜单栏中
选择工具>-android>-SDK管理器
并下载适用于您项目的目标 SDK 版本的 SDK 构建工具、SDK 平台和 Google API。确保您已下载所有新更新(如果有)
如果您不确定必须下载哪些项目,您可以选择所有项目。(当然,下载会花费更多时间)。尝试一下也没有坏处
重新启动IDE
您可以在这里找到更多信息: https://developer.android.com/sdk/installing/adding-packages.html
| 归档时间: |
|
| 查看次数: |
5469 次 |
| 最近记录: |