2015-07-11 43 views
3

我使用的Android从昨天但今天当我通过intellijIDEA跑到我的应用程序非常精细弃用它给了我:应用:主题现在

I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead. 

我的风格是:

<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> 

有什么问题,我该如何解决?

在此先感谢,

UPDATE:我toolbar.xml文件是:

<?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工具:24.3.3

Android SDK中构建工具: 22

Android的支持库:22.2

+0

您使用的工具栏? –

+0

谢谢@NileshJarad,是的,我使用 –

+0

你可以发布工具栏的XML代码? –

回答

5

尝试

<?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" 
      /> 
+0

它给我***未捕获的远程异常! (异常现在还不支持跨进程。) java.lang.RuntimeException:内存不足 –

+0

检查我更新的答案 –

+0

您使用的是任何服务? –