首页 > 移动平台 > 详细

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

时间:2014-11-07 08:39:16      阅读:335      评论:0      收藏:0      [点我收藏+]

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"

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!