码迷,mamicode.com
首页 > 移动开发 > 详细

Android - 错误:"No resource found that matches the given name android:Theme.Material"

时间:2014-11-07 08:42:05      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:mystra   android   material   androidtheme.materia   not found   

Android - 错误:"No resource found that matches the given name android:Theme.Material"


本文地址: http://blog.csdn.net/caroline_wendy


错误: "No resource found that matches the given name ‘android:Theme.Material.Light.DarkActionBar‘"

原因是:
build.gradle出错, Material是Android L版本的界面功能.
需要制定编译器SDK版本(compileSdkVersion)Android L.

android {
  compileSdkVersion ‘android-L‘
  buildToolsVersion ‘20.0.0‘
  defaultConfig {
    minSdkVersion ‘L‘
    targetSdkVersion ‘L‘
    versionCode 1
    versionName ‘1.0‘
  }
}



其实最低需要, 只修改compileSdkVersion为‘android-L‘即可.


bubuko.com,布布扣

Android - 错误:"No resource found that matches the given name android:Theme.Material"

标签:mystra   android   material   androidtheme.materia   not found   

原文地址:http://blog.csdn.net/caroline_wendy/article/details/40887285

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!