android - app:theme now is deprecated -


i using android fine yesterday today when ran app through intellijidea gives me :

i/appcompatviewinflater﹕ app:theme deprecated. please move using android:theme instead. 

my styles :

    <resources>      <style name="apptheme" parent="theme.base">      </style>      <style name="theme.base" parent="theme.appcompat.light.noactionbar">         <item name="android:windownotitle">true</item>         <item name="windowactionbar">false</item>         <item name="colorprimary">@color/colorprimary</item>         <item name="colorprimarydark">@color/colorprimarydark</item>         <item name="coloraccent">@color/coloraccent</item>     </style> </resources> 

what problem , how can solve it?

thanks in advance,

update :my toolbar.xml file is:

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android"                                xmlns:local="http://schemas.android.com/apk/res-auto"                                android:id="@+id/toolbar"                                android:layout_width="match_parent"                                android:layout_height="wrap_content"                                android:minheight="?attr/actionbarsize"                                android:background="?attr/colorprimary"                                local:theme="@style/themeoverlay.appcompat.dark.actionbar"                                local:popuptheme="@style/themeoverlay.appcompat.light" /> 

android sdk tools : 24.3.3

android sdk build tools :22

android support library : 22.2

try

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar             xmlns:android="http://schemas.android.com/apk/res/android"            xmlns:local="http://schemas.android.com/apk/res-auto"            android:id="@+id/toolbar"            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:minheight="?attr/actionbarsize"            android:background="?attr/colorprimary"            android:theme="@style/themeoverlay.appcompat.dark.actionbar"           /> 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -