<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/activity_2main" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ListView android:choiceMode="multipleChoice" android:id="@+id/countriesList" android:layout_width="match_parent" android:layout_height="match_parent" /> <Button android:id="@+id/btnSubmit" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btnSubmit"> </Button> </LinearLayout>
Errors in the "design" mode
Failed to load AppCompat ActionBar with unknown error. Faild to instantiate one or more classes The following classes could not be instantiated: - android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache) - android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener Copy stack to clipboard
What is the problem ?