Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android XML error message

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

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

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!

Example XML file

<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

Example of popup

like image 818
Daiwik Daarun Avatar asked Jul 28 '14 16:07

Daiwik Daarun


People also ask

What is Android XML in Android?

XML stands for eXtensible Markup Language, which is a way of describing data using a text-based document. Because XML is extensible and very flexible, it's used for many different things, including defining the UI layout of Android apps.

What is IDS XML in Android?

ID resource is a simple resource defined in XML that provides a unique identifier for other project resources. An ID resource does not always reference an actual resource item, it is simply a unique ID that you can attach to other project resources or use as a unique integer in your app.

What is Android XML layout?

Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts. You can also use Android Studio's Layout Editor to build your XML layout using a drag-and-drop interface. Instantiate layout elements at runtime.


1 Answers

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

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

like image 102
pelican_george Avatar answered Sep 23 '22 18:09

pelican_george