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

Posted cynchanpin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android - 错误:"No resource found that matches the given name android:Theme.Material&quot相关的知识,希望对你有一定的参考价值。

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‘就可以.


技术分享











以上是关于Android - 错误:"No resource found that matches the given name android:Theme.Material&quot的主要内容,如果未能解决你的问题,请参考以下文章

Facebook AudienceNetwork 加载失败:No fill,错误消息“No fill”,FaceBook android Advertise 是啥原因?

Android错误之--Error retrieving parent for item: No resource found that matches the given name &#39

cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory"

关于签名错误"INSTALL_PARSE_FAILED_NO_CERTIFICATES"的踩坑之旅

Android 使用 Intent 保存和写入文本文件,得到 IOException “No content provider”

Error: Failed to launch instance "win7": Please try again later [Error: No valid h