Failed to load AppCompat ActionBar with unknown error in android studio











up vote
132
down vote

favorite
69












Below is my xml file. In preview there is two error'Failed to load AppCompat ActionBar with unknown error' & 'Failed to instaniate more than one class'. How ever am able to run the app.But the app crashes and in Logcat no errors are shown.



This is my preview screen shotenter image description here



<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">


<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="506dp" />

<LinearLayout
android:id="@+id/layout_main"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
tools:context=".Activity.MainActivity">


<LinearLayout
android:id="@+id/main_layout"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"
tools:context=".Activity.MainActivity">

<!-- our tablayout to display tabs -->
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorBlack"
app:tabTextColor="@color/colorWhite"
android:background="@color/colorOran"
android:minHeight="?attr/actionBarSize"
/>

<!-- View pager to swipe views -->
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</LinearLayout>

<LinearLayout
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:orientation="horizontal"
android:layout_weight="0.3"
android:weightSum="4"
tools:layout_editor_absoluteX="8dp"
android:layout_marginBottom="8dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<ImageView
android:id="@+id/btn_home"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_home_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_new"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_todaydeals_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_fav"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_fav_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_auth"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_franchie_icon"
android:background="@color/colorOran"
android:scaleType="fitCenter"
android:layout_marginRight="1dp"
/>

</LinearLayout>

</LinearLayout>


<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />


</android.support.v4.widget.DrawerLayout>


Below is appbar_main



<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.jeyashri.kitchen.jeyashriskitchen.Activity.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">


<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorOran"
app:popupTheme="@style/AppTheme.PopupOverlay">

<ImageView
android:id="@+id/app_logo"
android:layout_width="80dp"
android:layout_height="match_parent"
android:src="@drawable/img"/>

<ImageView
android:id="@+id/btn_social"
android:layout_width="75dp"
android:layout_height="35dp"
android:layout_marginRight="1dp"
android:src="@drawable/share_icon" />

</android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />


</android.support.design.widget.CoordinatorLayout>









share|improve this question
























  • Try with changing android version.
    – chetan mekha
    Jun 9 '17 at 5:15










  • tried changing the version.. Not helping
    – Siva
    Jun 9 '17 at 6:47










  • For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
    – Mr-IDE
    Nov 26 '17 at 14:51










  • Possible duplicate of Android Studio rendering problems
    – Shayan
    Aug 18 at 6:13










  • Make sure your Gradle version is up to date.
    – Ramiz Ansari
    Nov 7 at 16:50















up vote
132
down vote

favorite
69












Below is my xml file. In preview there is two error'Failed to load AppCompat ActionBar with unknown error' & 'Failed to instaniate more than one class'. How ever am able to run the app.But the app crashes and in Logcat no errors are shown.



This is my preview screen shotenter image description here



<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">


<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="506dp" />

<LinearLayout
android:id="@+id/layout_main"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
tools:context=".Activity.MainActivity">


<LinearLayout
android:id="@+id/main_layout"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"
tools:context=".Activity.MainActivity">

<!-- our tablayout to display tabs -->
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorBlack"
app:tabTextColor="@color/colorWhite"
android:background="@color/colorOran"
android:minHeight="?attr/actionBarSize"
/>

<!-- View pager to swipe views -->
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</LinearLayout>

<LinearLayout
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:orientation="horizontal"
android:layout_weight="0.3"
android:weightSum="4"
tools:layout_editor_absoluteX="8dp"
android:layout_marginBottom="8dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<ImageView
android:id="@+id/btn_home"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_home_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_new"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_todaydeals_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_fav"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_fav_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_auth"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_franchie_icon"
android:background="@color/colorOran"
android:scaleType="fitCenter"
android:layout_marginRight="1dp"
/>

</LinearLayout>

</LinearLayout>


<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />


</android.support.v4.widget.DrawerLayout>


Below is appbar_main



<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.jeyashri.kitchen.jeyashriskitchen.Activity.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">


<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorOran"
app:popupTheme="@style/AppTheme.PopupOverlay">

<ImageView
android:id="@+id/app_logo"
android:layout_width="80dp"
android:layout_height="match_parent"
android:src="@drawable/img"/>

<ImageView
android:id="@+id/btn_social"
android:layout_width="75dp"
android:layout_height="35dp"
android:layout_marginRight="1dp"
android:src="@drawable/share_icon" />

</android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />


</android.support.design.widget.CoordinatorLayout>









share|improve this question
























  • Try with changing android version.
    – chetan mekha
    Jun 9 '17 at 5:15










  • tried changing the version.. Not helping
    – Siva
    Jun 9 '17 at 6:47










  • For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
    – Mr-IDE
    Nov 26 '17 at 14:51










  • Possible duplicate of Android Studio rendering problems
    – Shayan
    Aug 18 at 6:13










  • Make sure your Gradle version is up to date.
    – Ramiz Ansari
    Nov 7 at 16:50













up vote
132
down vote

favorite
69









up vote
132
down vote

favorite
69






69





Below is my xml file. In preview there is two error'Failed to load AppCompat ActionBar with unknown error' & 'Failed to instaniate more than one class'. How ever am able to run the app.But the app crashes and in Logcat no errors are shown.



This is my preview screen shotenter image description here



<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">


<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="506dp" />

<LinearLayout
android:id="@+id/layout_main"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
tools:context=".Activity.MainActivity">


<LinearLayout
android:id="@+id/main_layout"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"
tools:context=".Activity.MainActivity">

<!-- our tablayout to display tabs -->
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorBlack"
app:tabTextColor="@color/colorWhite"
android:background="@color/colorOran"
android:minHeight="?attr/actionBarSize"
/>

<!-- View pager to swipe views -->
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</LinearLayout>

<LinearLayout
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:orientation="horizontal"
android:layout_weight="0.3"
android:weightSum="4"
tools:layout_editor_absoluteX="8dp"
android:layout_marginBottom="8dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<ImageView
android:id="@+id/btn_home"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_home_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_new"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_todaydeals_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_fav"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_fav_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_auth"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_franchie_icon"
android:background="@color/colorOran"
android:scaleType="fitCenter"
android:layout_marginRight="1dp"
/>

</LinearLayout>

</LinearLayout>


<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />


</android.support.v4.widget.DrawerLayout>


Below is appbar_main



<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.jeyashri.kitchen.jeyashriskitchen.Activity.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">


<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorOran"
app:popupTheme="@style/AppTheme.PopupOverlay">

<ImageView
android:id="@+id/app_logo"
android:layout_width="80dp"
android:layout_height="match_parent"
android:src="@drawable/img"/>

<ImageView
android:id="@+id/btn_social"
android:layout_width="75dp"
android:layout_height="35dp"
android:layout_marginRight="1dp"
android:src="@drawable/share_icon" />

</android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />


</android.support.design.widget.CoordinatorLayout>









share|improve this question















Below is my xml file. In preview there is two error'Failed to load AppCompat ActionBar with unknown error' & 'Failed to instaniate more than one class'. How ever am able to run the app.But the app crashes and in Logcat no errors are shown.



This is my preview screen shotenter image description here



<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">


<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="506dp" />

<LinearLayout
android:id="@+id/layout_main"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
tools:context=".Activity.MainActivity">


<LinearLayout
android:id="@+id/main_layout"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"
tools:context=".Activity.MainActivity">

<!-- our tablayout to display tabs -->
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorBlack"
app:tabTextColor="@color/colorWhite"
android:background="@color/colorOran"
android:minHeight="?attr/actionBarSize"
/>

<!-- View pager to swipe views -->
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</LinearLayout>

<LinearLayout
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_alignParentBottom="true"
android:background="#ffffff"
android:orientation="horizontal"
android:layout_weight="0.3"
android:weightSum="4"
tools:layout_editor_absoluteX="8dp"
android:layout_marginBottom="8dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<ImageView
android:id="@+id/btn_home"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_home_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_new"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_todaydeals_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_fav"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_fav_icon"
android:background="@color/colorOran"
android:layout_marginRight="1dp"
android:scaleType="fitCenter"/>

<ImageView
android:id="@+id/btn_auth"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ta_franchie_icon"
android:background="@color/colorOran"
android:scaleType="fitCenter"
android:layout_marginRight="1dp"
/>

</LinearLayout>

</LinearLayout>


<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />


</android.support.v4.widget.DrawerLayout>


Below is appbar_main



<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.jeyashri.kitchen.jeyashriskitchen.Activity.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">


<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorOran"
app:popupTheme="@style/AppTheme.PopupOverlay">

<ImageView
android:id="@+id/app_logo"
android:layout_width="80dp"
android:layout_height="match_parent"
android:src="@drawable/img"/>

<ImageView
android:id="@+id/btn_social"
android:layout_width="75dp"
android:layout_height="35dp"
android:layout_marginRight="1dp"
android:src="@drawable/share_icon" />

</android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />


</android.support.design.widget.CoordinatorLayout>






android android-actionbar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 9 '17 at 7:00

























asked Jun 9 '17 at 4:23









Siva

7182514




7182514












  • Try with changing android version.
    – chetan mekha
    Jun 9 '17 at 5:15










  • tried changing the version.. Not helping
    – Siva
    Jun 9 '17 at 6:47










  • For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
    – Mr-IDE
    Nov 26 '17 at 14:51










  • Possible duplicate of Android Studio rendering problems
    – Shayan
    Aug 18 at 6:13










  • Make sure your Gradle version is up to date.
    – Ramiz Ansari
    Nov 7 at 16:50


















  • Try with changing android version.
    – chetan mekha
    Jun 9 '17 at 5:15










  • tried changing the version.. Not helping
    – Siva
    Jun 9 '17 at 6:47










  • For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
    – Mr-IDE
    Nov 26 '17 at 14:51










  • Possible duplicate of Android Studio rendering problems
    – Shayan
    Aug 18 at 6:13










  • Make sure your Gradle version is up to date.
    – Ramiz Ansari
    Nov 7 at 16:50
















Try with changing android version.
– chetan mekha
Jun 9 '17 at 5:15




Try with changing android version.
– chetan mekha
Jun 9 '17 at 5:15












tried changing the version.. Not helping
– Siva
Jun 9 '17 at 6:47




tried changing the version.. Not helping
– Siva
Jun 9 '17 at 6:47












For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
– Mr-IDE
Nov 26 '17 at 14:51




For a solution without changing the appcompat library, see: stackoverflow.com/questions/44223687#45002903
– Mr-IDE
Nov 26 '17 at 14:51












Possible duplicate of Android Studio rendering problems
– Shayan
Aug 18 at 6:13




Possible duplicate of Android Studio rendering problems
– Shayan
Aug 18 at 6:13












Make sure your Gradle version is up to date.
– Ramiz Ansari
Nov 7 at 16:50




Make sure your Gradle version is up to date.
– Ramiz Ansari
Nov 7 at 16:50












14 Answers
14






active

oldest

votes

















up vote
253
down vote



accepted










The solution to this problem depends on the version of the Android support library you're using:



Support library 26.0.0-beta2



This android support library version has a bug causing the mentioned problem



In your Gradle build file use:



compile 'com.android.support:appcompat-v7:26.0.0'


with:



buildToolsVersion '26.0.0' 


and



classpath 'com.android.tools.build:gradle:3.0.0-alpha8'


everything should work fine now.





Library version 28 (beta)



These new versions seem to suffer from similar difficulties again.



In your res/values/styles.xml modify the AppTheme style from



<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


to



<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


(note the added Base.)



Or alternatively downgrade the library until the problem is fixed:



implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'





share|improve this answer



















  • 19




    Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
    – Julian Borrero
    Jul 18 '17 at 15:53






  • 2




    I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
    – Buddhika Ariyaratne
    Jul 7 at 19:10






  • 1




    Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
    – Doug J. Huras
    Jul 15 at 19:44






  • 5




    Just curious: how does one go about figuring something like this out? I would never have guessed...
    – BareMetalCoder
    Aug 7 at 14:05






  • 3




    Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
    – Searene
    Aug 12 at 8:51


















up vote
248
down vote













found it on this site, it works on me.
Modify /res/values/styles.xml from:



<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>


to:



<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
</style>





share|improve this answer



















  • 20




    Can you add an explanation of why this works? It will help people who revisit this in the future.
    – Thomas Smyth
    Dec 2 '17 at 20:17






  • 13




    March 1st, 2018 confirmed this fixed my issue.
    – John Riselvato
    Mar 2 at 3:09






  • 4




    This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
    – pdoherty926
    Jun 8 at 0:01






  • 4




    June 30th, 2018, this works for me.
    – keoni29
    Jun 30 at 9:10






  • 2




    July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
    – CoolMind
    Jul 16 at 15:54




















up vote
26
down vote













June 2018 Issue fixed by using a different appcompact version.
Use these codes onto your project dependencies...



In build.gradle(Module: app) add this dependency



implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'


Happy Coding... :)






share|improve this answer



















  • 4




    It's again broken in beta :(
    – nifCody
    Jul 28 at 11:10


















up vote
13
down vote













Method 1:



Locate /res/values/styles.xml



Change



<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


To



<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


Method 2:



Modify template file(locate: android-studio/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/res/values/styles.xml.ftl)



Change



backwardsCompatibility!true>Theme.AppCompat<#else><#if


To



backwardsCompatibility!true>Base.Theme.AppCompat<#else><#if


Watch Solution On YouTube



Solution






share|improve this answer






























    up vote
    9
    down vote













    I also had this problem and it's solved as
    change line from res/values/styles.xml



    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


    to




    1. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

    2. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


    both solutions worked






    share|improve this answer























    • worked like a charm.
      – Ahmed I. Elsayed
      Aug 30 at 23:47










    • happy coding :)
      – Muhammad Azam
      Oct 9 at 14:41


















    up vote
    5
    down vote













    Open preview mode



    follow the below link to fix the issue



    Fix - Rendering Problems The Following classes could not be found : android.support.v7.internal



    goto appTheme ----> select Holo Theme ---> refresh



    https://www.youtube.com/watch?v=4MxBnwpcUjA






    share|improve this answer

















    • 1




      just changing theme from preview pane to some theme other than AppTheme worked
      – Qasim
      Dec 28 '17 at 8:22










    • It worked for me, just changing the theme other than AppTheme
      – gIrL
      Aug 30 at 6:11


















    up vote
    5
    down vote













    Replace implementation 'com.android.support:appcompat-v7:28.0.0-beta01' with



    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' 


    in build.gradle (Module:app). It fixed my red mark in Android Studio 3.1.3






    share|improve this answer

















    • 2




      thanks it is working for me :)
      – Jaymin Bhadani
      Aug 7 at 10:59










    • Great happy coding
      – Kashif
      Aug 8 at 9:44










    • Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
      – TheGeeko61
      Sep 15 at 3:35


















    up vote
    4
    down vote













    in android 3.0.0 canary 6 you must change all 2.6.0 beta2 to beta1 (appcompat,design,supportvector)






    share|improve this answer




























      up vote
      4
      down vote













      Try this:



      Just change:



      compile 'com.android.support:appcompat-v7:26.0.0-beta2'


      to:



      compile 'com.android.support:appcompat-v7:26.0.0-beta1'


      Reference






      share|improve this answer




























        up vote
        3
        down vote













        This is Worked for me i have made the following changes in Style.xml



        Change the Following Code:



        <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


        With



        <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">





        share|improve this answer




























          up vote
          2
          down vote













          Use this one:



          implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
          implementation 'com.android.support:design:26.0.0-beta1'


          instead of



          implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
          implementation 'com.android.support:design:26.0.0-beta2'


          In my case it removed the rendering problem.






          share|improve this answer






























            up vote
            1
            down vote













            This is the minimum configuration that solves the problem.



            use:



            dependencies {
            ...
            implementation 'com.android.support:appcompat-v7:26.1.0'
            ...
            }


            with:



             compileSdkVersion 26
            buildToolsVersion "26.0.1"


            and into the build.gradle file located inside the root of the proyect:



            buildscript {
            ...
            ....
            dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
            ...
            ...
            }
            }





            share|improve this answer




























              up vote
              0
              down vote













              I was also facing the same problem. Nothing like changing theme from Layout preview window helped me.



              What helped me was adding this to Apptheme in styles.xml:



              dependencies {
              implementation 'com.android.support:appcompat-v7:27.0.2'
              implementation 'com.android.support:design:27.0.2'
              }


              Still it was giving me the error: "cannot resolve symbol widget...coordinatorLayout". Then I updated my build.gradle(app) with:



              dependencies {
              implementation 'com.android.support:appcompat-v7:27.0.2'
              implementation 'com.android.support:design:27.0.2'
              }


              One more thing:



              compileSdkVersion 27
              targetSdkVersion 27





              share|improve this answer




























                up vote
                0
                down vote













                I also had this problem with implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'.



                The solution for me was to go File -> Invalidate Caches / Restart -> Invalidate -> Close Project -> Remove project from project window -> Open Project (from project window).






                share|improve this answer




















                  protected by Community Jun 17 at 2:17



                  Thank you for your interest in this question.
                  Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                  Would you like to answer one of these unanswered questions instead?














                  14 Answers
                  14






                  active

                  oldest

                  votes








                  14 Answers
                  14






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes








                  up vote
                  253
                  down vote



                  accepted










                  The solution to this problem depends on the version of the Android support library you're using:



                  Support library 26.0.0-beta2



                  This android support library version has a bug causing the mentioned problem



                  In your Gradle build file use:



                  compile 'com.android.support:appcompat-v7:26.0.0'


                  with:



                  buildToolsVersion '26.0.0' 


                  and



                  classpath 'com.android.tools.build:gradle:3.0.0-alpha8'


                  everything should work fine now.





                  Library version 28 (beta)



                  These new versions seem to suffer from similar difficulties again.



                  In your res/values/styles.xml modify the AppTheme style from



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                  to



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                  (note the added Base.)



                  Or alternatively downgrade the library until the problem is fixed:



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'





                  share|improve this answer



















                  • 19




                    Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                    – Julian Borrero
                    Jul 18 '17 at 15:53






                  • 2




                    I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                    – Buddhika Ariyaratne
                    Jul 7 at 19:10






                  • 1




                    Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                    – Doug J. Huras
                    Jul 15 at 19:44






                  • 5




                    Just curious: how does one go about figuring something like this out? I would never have guessed...
                    – BareMetalCoder
                    Aug 7 at 14:05






                  • 3




                    Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                    – Searene
                    Aug 12 at 8:51















                  up vote
                  253
                  down vote



                  accepted










                  The solution to this problem depends on the version of the Android support library you're using:



                  Support library 26.0.0-beta2



                  This android support library version has a bug causing the mentioned problem



                  In your Gradle build file use:



                  compile 'com.android.support:appcompat-v7:26.0.0'


                  with:



                  buildToolsVersion '26.0.0' 


                  and



                  classpath 'com.android.tools.build:gradle:3.0.0-alpha8'


                  everything should work fine now.





                  Library version 28 (beta)



                  These new versions seem to suffer from similar difficulties again.



                  In your res/values/styles.xml modify the AppTheme style from



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                  to



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                  (note the added Base.)



                  Or alternatively downgrade the library until the problem is fixed:



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'





                  share|improve this answer



















                  • 19




                    Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                    – Julian Borrero
                    Jul 18 '17 at 15:53






                  • 2




                    I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                    – Buddhika Ariyaratne
                    Jul 7 at 19:10






                  • 1




                    Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                    – Doug J. Huras
                    Jul 15 at 19:44






                  • 5




                    Just curious: how does one go about figuring something like this out? I would never have guessed...
                    – BareMetalCoder
                    Aug 7 at 14:05






                  • 3




                    Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                    – Searene
                    Aug 12 at 8:51













                  up vote
                  253
                  down vote



                  accepted







                  up vote
                  253
                  down vote



                  accepted






                  The solution to this problem depends on the version of the Android support library you're using:



                  Support library 26.0.0-beta2



                  This android support library version has a bug causing the mentioned problem



                  In your Gradle build file use:



                  compile 'com.android.support:appcompat-v7:26.0.0'


                  with:



                  buildToolsVersion '26.0.0' 


                  and



                  classpath 'com.android.tools.build:gradle:3.0.0-alpha8'


                  everything should work fine now.





                  Library version 28 (beta)



                  These new versions seem to suffer from similar difficulties again.



                  In your res/values/styles.xml modify the AppTheme style from



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                  to



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                  (note the added Base.)



                  Or alternatively downgrade the library until the problem is fixed:



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'





                  share|improve this answer














                  The solution to this problem depends on the version of the Android support library you're using:



                  Support library 26.0.0-beta2



                  This android support library version has a bug causing the mentioned problem



                  In your Gradle build file use:



                  compile 'com.android.support:appcompat-v7:26.0.0'


                  with:



                  buildToolsVersion '26.0.0' 


                  and



                  classpath 'com.android.tools.build:gradle:3.0.0-alpha8'


                  everything should work fine now.





                  Library version 28 (beta)



                  These new versions seem to suffer from similar difficulties again.



                  In your res/values/styles.xml modify the AppTheme style from



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                  to



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                  (note the added Base.)



                  Or alternatively downgrade the library until the problem is fixed:



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 7 at 12:17









                  xcuipir

                  73




                  73










                  answered Jul 1 '17 at 8:26









                  Debashis Choudhury

                  2,652193




                  2,652193








                  • 19




                    Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                    – Julian Borrero
                    Jul 18 '17 at 15:53






                  • 2




                    I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                    – Buddhika Ariyaratne
                    Jul 7 at 19:10






                  • 1




                    Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                    – Doug J. Huras
                    Jul 15 at 19:44






                  • 5




                    Just curious: how does one go about figuring something like this out? I would never have guessed...
                    – BareMetalCoder
                    Aug 7 at 14:05






                  • 3




                    Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                    – Searene
                    Aug 12 at 8:51














                  • 19




                    Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                    – Julian Borrero
                    Jul 18 '17 at 15:53






                  • 2




                    I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                    – Buddhika Ariyaratne
                    Jul 7 at 19:10






                  • 1




                    Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                    – Doug J. Huras
                    Jul 15 at 19:44






                  • 5




                    Just curious: how does one go about figuring something like this out? I would never have guessed...
                    – BareMetalCoder
                    Aug 7 at 14:05






                  • 3




                    Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                    – Searene
                    Aug 12 at 8:51








                  19




                  19




                  Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                  – Julian Borrero
                  Jul 18 '17 at 15:53




                  Thank you! that did it. BTW for us Android dev newbiew is worh saying that change should be performed on build.gradle(Module: app) file
                  – Julian Borrero
                  Jul 18 '17 at 15:53




                  2




                  2




                  I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                  – Buddhika Ariyaratne
                  Jul 7 at 19:10




                  I just started today. I came across this issue. This answer asks to compile something, of which I have no idea as it does not explain how to do it. But the answer by tanchap solves issue. He/She clearly explained what to do. It was a simple task fora fresher like me. So I think that should be the answer.
                  – Buddhika Ariyaratne
                  Jul 7 at 19:10




                  1




                  1




                  Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                  – Doug J. Huras
                  Jul 15 at 19:44




                  Newb error for me! When I set up my new project, I forgot to uncheck the "Backwards Compatibility" option (I don't need backwards compatibility). I re-created the project with this unchecked and all is good!
                  – Doug J. Huras
                  Jul 15 at 19:44




                  5




                  5




                  Just curious: how does one go about figuring something like this out? I would never have guessed...
                  – BareMetalCoder
                  Aug 7 at 14:05




                  Just curious: how does one go about figuring something like this out? I would never have guessed...
                  – BareMetalCoder
                  Aug 7 at 14:05




                  3




                  3




                  Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                  – Searene
                  Aug 12 at 8:51




                  Thanks, but why this bug still exists in 2018? For an Android newbie, I cannot create a "Hello World" project because of this bug.
                  – Searene
                  Aug 12 at 8:51












                  up vote
                  248
                  down vote













                  found it on this site, it works on me.
                  Modify /res/values/styles.xml from:



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
                  </style>


                  to:



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
                  </style>





                  share|improve this answer



















                  • 20




                    Can you add an explanation of why this works? It will help people who revisit this in the future.
                    – Thomas Smyth
                    Dec 2 '17 at 20:17






                  • 13




                    March 1st, 2018 confirmed this fixed my issue.
                    – John Riselvato
                    Mar 2 at 3:09






                  • 4




                    This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                    – pdoherty926
                    Jun 8 at 0:01






                  • 4




                    June 30th, 2018, this works for me.
                    – keoni29
                    Jun 30 at 9:10






                  • 2




                    July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                    – CoolMind
                    Jul 16 at 15:54

















                  up vote
                  248
                  down vote













                  found it on this site, it works on me.
                  Modify /res/values/styles.xml from:



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
                  </style>


                  to:



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
                  </style>





                  share|improve this answer



















                  • 20




                    Can you add an explanation of why this works? It will help people who revisit this in the future.
                    – Thomas Smyth
                    Dec 2 '17 at 20:17






                  • 13




                    March 1st, 2018 confirmed this fixed my issue.
                    – John Riselvato
                    Mar 2 at 3:09






                  • 4




                    This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                    – pdoherty926
                    Jun 8 at 0:01






                  • 4




                    June 30th, 2018, this works for me.
                    – keoni29
                    Jun 30 at 9:10






                  • 2




                    July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                    – CoolMind
                    Jul 16 at 15:54















                  up vote
                  248
                  down vote










                  up vote
                  248
                  down vote









                  found it on this site, it works on me.
                  Modify /res/values/styles.xml from:



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
                  </style>


                  to:



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
                  </style>





                  share|improve this answer














                  found it on this site, it works on me.
                  Modify /res/values/styles.xml from:



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
                  </style>


                  to:



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
                  </style>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 11 at 16:09









                  meesern

                  1,3111220




                  1,3111220










                  answered Dec 2 '17 at 19:55









                  tanchap

                  2,481232




                  2,481232








                  • 20




                    Can you add an explanation of why this works? It will help people who revisit this in the future.
                    – Thomas Smyth
                    Dec 2 '17 at 20:17






                  • 13




                    March 1st, 2018 confirmed this fixed my issue.
                    – John Riselvato
                    Mar 2 at 3:09






                  • 4




                    This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                    – pdoherty926
                    Jun 8 at 0:01






                  • 4




                    June 30th, 2018, this works for me.
                    – keoni29
                    Jun 30 at 9:10






                  • 2




                    July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                    – CoolMind
                    Jul 16 at 15:54
















                  • 20




                    Can you add an explanation of why this works? It will help people who revisit this in the future.
                    – Thomas Smyth
                    Dec 2 '17 at 20:17






                  • 13




                    March 1st, 2018 confirmed this fixed my issue.
                    – John Riselvato
                    Mar 2 at 3:09






                  • 4




                    This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                    – pdoherty926
                    Jun 8 at 0:01






                  • 4




                    June 30th, 2018, this works for me.
                    – keoni29
                    Jun 30 at 9:10






                  • 2




                    July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                    – CoolMind
                    Jul 16 at 15:54










                  20




                  20




                  Can you add an explanation of why this works? It will help people who revisit this in the future.
                  – Thomas Smyth
                  Dec 2 '17 at 20:17




                  Can you add an explanation of why this works? It will help people who revisit this in the future.
                  – Thomas Smyth
                  Dec 2 '17 at 20:17




                  13




                  13




                  March 1st, 2018 confirmed this fixed my issue.
                  – John Riselvato
                  Mar 2 at 3:09




                  March 1st, 2018 confirmed this fixed my issue.
                  – John Riselvato
                  Mar 2 at 3:09




                  4




                  4




                  This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                  – pdoherty926
                  Jun 8 at 0:01




                  This also worked for me. Does anyone know why this is necessary, though? I've been away from Android for a few years and I cannot believe how much finagling I've had to do to get a simple project up and running. (This includes trying to build/run some of the sample projects provided by Android Studio.)
                  – pdoherty926
                  Jun 8 at 0:01




                  4




                  4




                  June 30th, 2018, this works for me.
                  – keoni29
                  Jun 30 at 9:10




                  June 30th, 2018, this works for me.
                  – keoni29
                  Jun 30 at 9:10




                  2




                  2




                  July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                  – CoolMind
                  Jul 16 at 15:54






                  July, 16th, 2018, works for me too with 'com.android.support:appcompat-v7:28.0.0-alpha3'.
                  – CoolMind
                  Jul 16 at 15:54












                  up vote
                  26
                  down vote













                  June 2018 Issue fixed by using a different appcompact version.
                  Use these codes onto your project dependencies...



                  In build.gradle(Module: app) add this dependency



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'


                  Happy Coding... :)






                  share|improve this answer



















                  • 4




                    It's again broken in beta :(
                    – nifCody
                    Jul 28 at 11:10















                  up vote
                  26
                  down vote













                  June 2018 Issue fixed by using a different appcompact version.
                  Use these codes onto your project dependencies...



                  In build.gradle(Module: app) add this dependency



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'


                  Happy Coding... :)






                  share|improve this answer



















                  • 4




                    It's again broken in beta :(
                    – nifCody
                    Jul 28 at 11:10













                  up vote
                  26
                  down vote










                  up vote
                  26
                  down vote









                  June 2018 Issue fixed by using a different appcompact version.
                  Use these codes onto your project dependencies...



                  In build.gradle(Module: app) add this dependency



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'


                  Happy Coding... :)






                  share|improve this answer














                  June 2018 Issue fixed by using a different appcompact version.
                  Use these codes onto your project dependencies...



                  In build.gradle(Module: app) add this dependency



                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'


                  Happy Coding... :)







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 25 at 13:08

























                  answered Jun 12 at 9:46









                  Abhishek

                  27339




                  27339








                  • 4




                    It's again broken in beta :(
                    – nifCody
                    Jul 28 at 11:10














                  • 4




                    It's again broken in beta :(
                    – nifCody
                    Jul 28 at 11:10








                  4




                  4




                  It's again broken in beta :(
                  – nifCody
                  Jul 28 at 11:10




                  It's again broken in beta :(
                  – nifCody
                  Jul 28 at 11:10










                  up vote
                  13
                  down vote













                  Method 1:



                  Locate /res/values/styles.xml



                  Change



                  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                  To



                  <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                  Method 2:



                  Modify template file(locate: android-studio/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/res/values/styles.xml.ftl)



                  Change



                  backwardsCompatibility!true>Theme.AppCompat<#else><#if


                  To



                  backwardsCompatibility!true>Base.Theme.AppCompat<#else><#if


                  Watch Solution On YouTube



                  Solution






                  share|improve this answer



























                    up vote
                    13
                    down vote













                    Method 1:



                    Locate /res/values/styles.xml



                    Change



                    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                    To



                    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                    Method 2:



                    Modify template file(locate: android-studio/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/res/values/styles.xml.ftl)



                    Change



                    backwardsCompatibility!true>Theme.AppCompat<#else><#if


                    To



                    backwardsCompatibility!true>Base.Theme.AppCompat<#else><#if


                    Watch Solution On YouTube



                    Solution






                    share|improve this answer

























                      up vote
                      13
                      down vote










                      up vote
                      13
                      down vote









                      Method 1:



                      Locate /res/values/styles.xml



                      Change



                      <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                      To



                      <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                      Method 2:



                      Modify template file(locate: android-studio/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/res/values/styles.xml.ftl)



                      Change



                      backwardsCompatibility!true>Theme.AppCompat<#else><#if


                      To



                      backwardsCompatibility!true>Base.Theme.AppCompat<#else><#if


                      Watch Solution On YouTube



                      Solution






                      share|improve this answer














                      Method 1:



                      Locate /res/values/styles.xml



                      Change



                      <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                      To



                      <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                      Method 2:



                      Modify template file(locate: android-studio/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/res/values/styles.xml.ftl)



                      Change



                      backwardsCompatibility!true>Theme.AppCompat<#else><#if


                      To



                      backwardsCompatibility!true>Base.Theme.AppCompat<#else><#if


                      Watch Solution On YouTube



                      Solution







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Aug 5 at 3:59

























                      answered Aug 4 at 2:06









                      shellhub

                      50636




                      50636






















                          up vote
                          9
                          down vote













                          I also had this problem and it's solved as
                          change line from res/values/styles.xml



                          <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                          to




                          1. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

                          2. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                          both solutions worked






                          share|improve this answer























                          • worked like a charm.
                            – Ahmed I. Elsayed
                            Aug 30 at 23:47










                          • happy coding :)
                            – Muhammad Azam
                            Oct 9 at 14:41















                          up vote
                          9
                          down vote













                          I also had this problem and it's solved as
                          change line from res/values/styles.xml



                          <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                          to




                          1. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

                          2. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                          both solutions worked






                          share|improve this answer























                          • worked like a charm.
                            – Ahmed I. Elsayed
                            Aug 30 at 23:47










                          • happy coding :)
                            – Muhammad Azam
                            Oct 9 at 14:41













                          up vote
                          9
                          down vote










                          up vote
                          9
                          down vote









                          I also had this problem and it's solved as
                          change line from res/values/styles.xml



                          <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                          to




                          1. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

                          2. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                          both solutions worked






                          share|improve this answer














                          I also had this problem and it's solved as
                          change line from res/values/styles.xml



                          <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                          to




                          1. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

                          2. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


                          both solutions worked







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Aug 25 at 13:03

























                          answered Aug 25 at 12:57









                          Muhammad Azam

                          16316




                          16316












                          • worked like a charm.
                            – Ahmed I. Elsayed
                            Aug 30 at 23:47










                          • happy coding :)
                            – Muhammad Azam
                            Oct 9 at 14:41


















                          • worked like a charm.
                            – Ahmed I. Elsayed
                            Aug 30 at 23:47










                          • happy coding :)
                            – Muhammad Azam
                            Oct 9 at 14:41
















                          worked like a charm.
                          – Ahmed I. Elsayed
                          Aug 30 at 23:47




                          worked like a charm.
                          – Ahmed I. Elsayed
                          Aug 30 at 23:47












                          happy coding :)
                          – Muhammad Azam
                          Oct 9 at 14:41




                          happy coding :)
                          – Muhammad Azam
                          Oct 9 at 14:41










                          up vote
                          5
                          down vote













                          Open preview mode



                          follow the below link to fix the issue



                          Fix - Rendering Problems The Following classes could not be found : android.support.v7.internal



                          goto appTheme ----> select Holo Theme ---> refresh



                          https://www.youtube.com/watch?v=4MxBnwpcUjA






                          share|improve this answer

















                          • 1




                            just changing theme from preview pane to some theme other than AppTheme worked
                            – Qasim
                            Dec 28 '17 at 8:22










                          • It worked for me, just changing the theme other than AppTheme
                            – gIrL
                            Aug 30 at 6:11















                          up vote
                          5
                          down vote













                          Open preview mode



                          follow the below link to fix the issue



                          Fix - Rendering Problems The Following classes could not be found : android.support.v7.internal



                          goto appTheme ----> select Holo Theme ---> refresh



                          https://www.youtube.com/watch?v=4MxBnwpcUjA






                          share|improve this answer

















                          • 1




                            just changing theme from preview pane to some theme other than AppTheme worked
                            – Qasim
                            Dec 28 '17 at 8:22










                          • It worked for me, just changing the theme other than AppTheme
                            – gIrL
                            Aug 30 at 6:11













                          up vote
                          5
                          down vote










                          up vote
                          5
                          down vote









                          Open preview mode



                          follow the below link to fix the issue



                          Fix - Rendering Problems The Following classes could not be found : android.support.v7.internal



                          goto appTheme ----> select Holo Theme ---> refresh



                          https://www.youtube.com/watch?v=4MxBnwpcUjA






                          share|improve this answer












                          Open preview mode



                          follow the below link to fix the issue



                          Fix - Rendering Problems The Following classes could not be found : android.support.v7.internal



                          goto appTheme ----> select Holo Theme ---> refresh



                          https://www.youtube.com/watch?v=4MxBnwpcUjA







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 30 '17 at 12:45









                          UpendranathReddy

                          14317




                          14317








                          • 1




                            just changing theme from preview pane to some theme other than AppTheme worked
                            – Qasim
                            Dec 28 '17 at 8:22










                          • It worked for me, just changing the theme other than AppTheme
                            – gIrL
                            Aug 30 at 6:11














                          • 1




                            just changing theme from preview pane to some theme other than AppTheme worked
                            – Qasim
                            Dec 28 '17 at 8:22










                          • It worked for me, just changing the theme other than AppTheme
                            – gIrL
                            Aug 30 at 6:11








                          1




                          1




                          just changing theme from preview pane to some theme other than AppTheme worked
                          – Qasim
                          Dec 28 '17 at 8:22




                          just changing theme from preview pane to some theme other than AppTheme worked
                          – Qasim
                          Dec 28 '17 at 8:22












                          It worked for me, just changing the theme other than AppTheme
                          – gIrL
                          Aug 30 at 6:11




                          It worked for me, just changing the theme other than AppTheme
                          – gIrL
                          Aug 30 at 6:11










                          up vote
                          5
                          down vote













                          Replace implementation 'com.android.support:appcompat-v7:28.0.0-beta01' with



                          implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' 


                          in build.gradle (Module:app). It fixed my red mark in Android Studio 3.1.3






                          share|improve this answer

















                          • 2




                            thanks it is working for me :)
                            – Jaymin Bhadani
                            Aug 7 at 10:59










                          • Great happy coding
                            – Kashif
                            Aug 8 at 9:44










                          • Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                            – TheGeeko61
                            Sep 15 at 3:35















                          up vote
                          5
                          down vote













                          Replace implementation 'com.android.support:appcompat-v7:28.0.0-beta01' with



                          implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' 


                          in build.gradle (Module:app). It fixed my red mark in Android Studio 3.1.3






                          share|improve this answer

















                          • 2




                            thanks it is working for me :)
                            – Jaymin Bhadani
                            Aug 7 at 10:59










                          • Great happy coding
                            – Kashif
                            Aug 8 at 9:44










                          • Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                            – TheGeeko61
                            Sep 15 at 3:35













                          up vote
                          5
                          down vote










                          up vote
                          5
                          down vote









                          Replace implementation 'com.android.support:appcompat-v7:28.0.0-beta01' with



                          implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' 


                          in build.gradle (Module:app). It fixed my red mark in Android Studio 3.1.3






                          share|improve this answer












                          Replace implementation 'com.android.support:appcompat-v7:28.0.0-beta01' with



                          implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' 


                          in build.gradle (Module:app). It fixed my red mark in Android Studio 3.1.3







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 6 at 13:41









                          Kashif

                          33948




                          33948








                          • 2




                            thanks it is working for me :)
                            – Jaymin Bhadani
                            Aug 7 at 10:59










                          • Great happy coding
                            – Kashif
                            Aug 8 at 9:44










                          • Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                            – TheGeeko61
                            Sep 15 at 3:35














                          • 2




                            thanks it is working for me :)
                            – Jaymin Bhadani
                            Aug 7 at 10:59










                          • Great happy coding
                            – Kashif
                            Aug 8 at 9:44










                          • Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                            – TheGeeko61
                            Sep 15 at 3:35








                          2




                          2




                          thanks it is working for me :)
                          – Jaymin Bhadani
                          Aug 7 at 10:59




                          thanks it is working for me :)
                          – Jaymin Bhadani
                          Aug 7 at 10:59












                          Great happy coding
                          – Kashif
                          Aug 8 at 9:44




                          Great happy coding
                          – Kashif
                          Aug 8 at 9:44












                          Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                          – TheGeeko61
                          Sep 15 at 3:35




                          Is there a way to change this at the app level? So that this need not be replicated for every project that I have.
                          – TheGeeko61
                          Sep 15 at 3:35










                          up vote
                          4
                          down vote













                          in android 3.0.0 canary 6 you must change all 2.6.0 beta2 to beta1 (appcompat,design,supportvector)






                          share|improve this answer

























                            up vote
                            4
                            down vote













                            in android 3.0.0 canary 6 you must change all 2.6.0 beta2 to beta1 (appcompat,design,supportvector)






                            share|improve this answer























                              up vote
                              4
                              down vote










                              up vote
                              4
                              down vote









                              in android 3.0.0 canary 6 you must change all 2.6.0 beta2 to beta1 (appcompat,design,supportvector)






                              share|improve this answer












                              in android 3.0.0 canary 6 you must change all 2.6.0 beta2 to beta1 (appcompat,design,supportvector)







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Jul 16 '17 at 16:24









                              reza rahmad

                              643513




                              643513






















                                  up vote
                                  4
                                  down vote













                                  Try this:



                                  Just change:



                                  compile 'com.android.support:appcompat-v7:26.0.0-beta2'


                                  to:



                                  compile 'com.android.support:appcompat-v7:26.0.0-beta1'


                                  Reference






                                  share|improve this answer

























                                    up vote
                                    4
                                    down vote













                                    Try this:



                                    Just change:



                                    compile 'com.android.support:appcompat-v7:26.0.0-beta2'


                                    to:



                                    compile 'com.android.support:appcompat-v7:26.0.0-beta1'


                                    Reference






                                    share|improve this answer























                                      up vote
                                      4
                                      down vote










                                      up vote
                                      4
                                      down vote









                                      Try this:



                                      Just change:



                                      compile 'com.android.support:appcompat-v7:26.0.0-beta2'


                                      to:



                                      compile 'com.android.support:appcompat-v7:26.0.0-beta1'


                                      Reference






                                      share|improve this answer












                                      Try this:



                                      Just change:



                                      compile 'com.android.support:appcompat-v7:26.0.0-beta2'


                                      to:



                                      compile 'com.android.support:appcompat-v7:26.0.0-beta1'


                                      Reference







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Jul 20 '17 at 21:52









                                      V.Y.

                                      2,38831336




                                      2,38831336






















                                          up vote
                                          3
                                          down vote













                                          This is Worked for me i have made the following changes in Style.xml



                                          Change the Following Code:



                                          <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                                          With



                                          <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">





                                          share|improve this answer

























                                            up vote
                                            3
                                            down vote













                                            This is Worked for me i have made the following changes in Style.xml



                                            Change the Following Code:



                                            <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                                            With



                                            <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">





                                            share|improve this answer























                                              up vote
                                              3
                                              down vote










                                              up vote
                                              3
                                              down vote









                                              This is Worked for me i have made the following changes in Style.xml



                                              Change the Following Code:



                                              <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                                              With



                                              <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">





                                              share|improve this answer












                                              This is Worked for me i have made the following changes in Style.xml



                                              Change the Following Code:



                                              <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


                                              With



                                              <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">






                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jul 9 at 8:52









                                              dev_mg99

                                              377311




                                              377311






















                                                  up vote
                                                  2
                                                  down vote













                                                  Use this one:



                                                  implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
                                                  implementation 'com.android.support:design:26.0.0-beta1'


                                                  instead of



                                                  implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
                                                  implementation 'com.android.support:design:26.0.0-beta2'


                                                  In my case it removed the rendering problem.






                                                  share|improve this answer



























                                                    up vote
                                                    2
                                                    down vote













                                                    Use this one:



                                                    implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
                                                    implementation 'com.android.support:design:26.0.0-beta1'


                                                    instead of



                                                    implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
                                                    implementation 'com.android.support:design:26.0.0-beta2'


                                                    In my case it removed the rendering problem.






                                                    share|improve this answer

























                                                      up vote
                                                      2
                                                      down vote










                                                      up vote
                                                      2
                                                      down vote









                                                      Use this one:



                                                      implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
                                                      implementation 'com.android.support:design:26.0.0-beta1'


                                                      instead of



                                                      implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
                                                      implementation 'com.android.support:design:26.0.0-beta2'


                                                      In my case it removed the rendering problem.






                                                      share|improve this answer














                                                      Use this one:



                                                      implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
                                                      implementation 'com.android.support:design:26.0.0-beta1'


                                                      instead of



                                                      implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
                                                      implementation 'com.android.support:design:26.0.0-beta2'


                                                      In my case it removed the rendering problem.







                                                      share|improve this answer














                                                      share|improve this answer



                                                      share|improve this answer








                                                      edited Jul 25 '17 at 15:45









                                                      Tamás Sengel

                                                      24.9k135992




                                                      24.9k135992










                                                      answered Jul 25 '17 at 14:16









                                                      vikash singh

                                                      211




                                                      211






















                                                          up vote
                                                          1
                                                          down vote













                                                          This is the minimum configuration that solves the problem.



                                                          use:



                                                          dependencies {
                                                          ...
                                                          implementation 'com.android.support:appcompat-v7:26.1.0'
                                                          ...
                                                          }


                                                          with:



                                                           compileSdkVersion 26
                                                          buildToolsVersion "26.0.1"


                                                          and into the build.gradle file located inside the root of the proyect:



                                                          buildscript {
                                                          ...
                                                          ....
                                                          dependencies {
                                                          classpath 'com.android.tools.build:gradle:3.0.1'
                                                          ...
                                                          ...
                                                          }
                                                          }





                                                          share|improve this answer

























                                                            up vote
                                                            1
                                                            down vote













                                                            This is the minimum configuration that solves the problem.



                                                            use:



                                                            dependencies {
                                                            ...
                                                            implementation 'com.android.support:appcompat-v7:26.1.0'
                                                            ...
                                                            }


                                                            with:



                                                             compileSdkVersion 26
                                                            buildToolsVersion "26.0.1"


                                                            and into the build.gradle file located inside the root of the proyect:



                                                            buildscript {
                                                            ...
                                                            ....
                                                            dependencies {
                                                            classpath 'com.android.tools.build:gradle:3.0.1'
                                                            ...
                                                            ...
                                                            }
                                                            }





                                                            share|improve this answer























                                                              up vote
                                                              1
                                                              down vote










                                                              up vote
                                                              1
                                                              down vote









                                                              This is the minimum configuration that solves the problem.



                                                              use:



                                                              dependencies {
                                                              ...
                                                              implementation 'com.android.support:appcompat-v7:26.1.0'
                                                              ...
                                                              }


                                                              with:



                                                               compileSdkVersion 26
                                                              buildToolsVersion "26.0.1"


                                                              and into the build.gradle file located inside the root of the proyect:



                                                              buildscript {
                                                              ...
                                                              ....
                                                              dependencies {
                                                              classpath 'com.android.tools.build:gradle:3.0.1'
                                                              ...
                                                              ...
                                                              }
                                                              }





                                                              share|improve this answer












                                                              This is the minimum configuration that solves the problem.



                                                              use:



                                                              dependencies {
                                                              ...
                                                              implementation 'com.android.support:appcompat-v7:26.1.0'
                                                              ...
                                                              }


                                                              with:



                                                               compileSdkVersion 26
                                                              buildToolsVersion "26.0.1"


                                                              and into the build.gradle file located inside the root of the proyect:



                                                              buildscript {
                                                              ...
                                                              ....
                                                              dependencies {
                                                              classpath 'com.android.tools.build:gradle:3.0.1'
                                                              ...
                                                              ...
                                                              }
                                                              }






                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Jun 13 at 16:51









                                                              Jorgesys

                                                              91k15234206




                                                              91k15234206






















                                                                  up vote
                                                                  0
                                                                  down vote













                                                                  I was also facing the same problem. Nothing like changing theme from Layout preview window helped me.



                                                                  What helped me was adding this to Apptheme in styles.xml:



                                                                  dependencies {
                                                                  implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                  implementation 'com.android.support:design:27.0.2'
                                                                  }


                                                                  Still it was giving me the error: "cannot resolve symbol widget...coordinatorLayout". Then I updated my build.gradle(app) with:



                                                                  dependencies {
                                                                  implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                  implementation 'com.android.support:design:27.0.2'
                                                                  }


                                                                  One more thing:



                                                                  compileSdkVersion 27
                                                                  targetSdkVersion 27





                                                                  share|improve this answer

























                                                                    up vote
                                                                    0
                                                                    down vote













                                                                    I was also facing the same problem. Nothing like changing theme from Layout preview window helped me.



                                                                    What helped me was adding this to Apptheme in styles.xml:



                                                                    dependencies {
                                                                    implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                    implementation 'com.android.support:design:27.0.2'
                                                                    }


                                                                    Still it was giving me the error: "cannot resolve symbol widget...coordinatorLayout". Then I updated my build.gradle(app) with:



                                                                    dependencies {
                                                                    implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                    implementation 'com.android.support:design:27.0.2'
                                                                    }


                                                                    One more thing:



                                                                    compileSdkVersion 27
                                                                    targetSdkVersion 27





                                                                    share|improve this answer























                                                                      up vote
                                                                      0
                                                                      down vote










                                                                      up vote
                                                                      0
                                                                      down vote









                                                                      I was also facing the same problem. Nothing like changing theme from Layout preview window helped me.



                                                                      What helped me was adding this to Apptheme in styles.xml:



                                                                      dependencies {
                                                                      implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                      implementation 'com.android.support:design:27.0.2'
                                                                      }


                                                                      Still it was giving me the error: "cannot resolve symbol widget...coordinatorLayout". Then I updated my build.gradle(app) with:



                                                                      dependencies {
                                                                      implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                      implementation 'com.android.support:design:27.0.2'
                                                                      }


                                                                      One more thing:



                                                                      compileSdkVersion 27
                                                                      targetSdkVersion 27





                                                                      share|improve this answer












                                                                      I was also facing the same problem. Nothing like changing theme from Layout preview window helped me.



                                                                      What helped me was adding this to Apptheme in styles.xml:



                                                                      dependencies {
                                                                      implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                      implementation 'com.android.support:design:27.0.2'
                                                                      }


                                                                      Still it was giving me the error: "cannot resolve symbol widget...coordinatorLayout". Then I updated my build.gradle(app) with:



                                                                      dependencies {
                                                                      implementation 'com.android.support:appcompat-v7:27.0.2'
                                                                      implementation 'com.android.support:design:27.0.2'
                                                                      }


                                                                      One more thing:



                                                                      compileSdkVersion 27
                                                                      targetSdkVersion 27






                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Jul 10 at 9:08









                                                                      Anu Chaudhary

                                                                      362210




                                                                      362210






















                                                                          up vote
                                                                          0
                                                                          down vote













                                                                          I also had this problem with implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'.



                                                                          The solution for me was to go File -> Invalidate Caches / Restart -> Invalidate -> Close Project -> Remove project from project window -> Open Project (from project window).






                                                                          share|improve this answer

























                                                                            up vote
                                                                            0
                                                                            down vote













                                                                            I also had this problem with implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'.



                                                                            The solution for me was to go File -> Invalidate Caches / Restart -> Invalidate -> Close Project -> Remove project from project window -> Open Project (from project window).






                                                                            share|improve this answer























                                                                              up vote
                                                                              0
                                                                              down vote










                                                                              up vote
                                                                              0
                                                                              down vote









                                                                              I also had this problem with implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'.



                                                                              The solution for me was to go File -> Invalidate Caches / Restart -> Invalidate -> Close Project -> Remove project from project window -> Open Project (from project window).






                                                                              share|improve this answer












                                                                              I also had this problem with implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'.



                                                                              The solution for me was to go File -> Invalidate Caches / Restart -> Invalidate -> Close Project -> Remove project from project window -> Open Project (from project window).







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Jul 13 at 11:08









                                                                              SnuKies

                                                                              431423




                                                                              431423

















                                                                                  protected by Community Jun 17 at 2:17



                                                                                  Thank you for your interest in this question.
                                                                                  Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                                                  Would you like to answer one of these unanswered questions instead?



                                                                                  Popular posts from this blog

                                                                                  Florida Star v. B. J. F.

                                                                                  Error while running script in elastic search , gateway timeout

                                                                                  Adding quotations to stringified JSON object values