一切都在质疑
我有一个这个模块的模块:
apply plugin: 'com.androID.library'androID { compileSdkVersion 21 buildToolsversion "21.1.2" compileOptions.enCoding "ISO-8859-1" defaultConfig { minSdkVersion 8 targetSdkVersion 8 } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.txt' } }}dependencIEs { compile 'com.androID.support:appcompat-v7:21.0.3'}
当我将“compileSdkVersion”更改为19 =>我找到100个关于未找到的资源的错误:
示例:
Error:(9, 21) No resource found that matches the given name: attr 'androID:actionModeShareDrawable'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Body1'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Body2'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.button'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Caption'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.display1'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.display2'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.display3'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.display4'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.headline'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Inverse'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Large'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Large.Inverse'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Widget.PopupMenu.Large'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Widget.PopupMenu.Small'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Medium'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Medium.Inverse'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Menu'.Error:Error retrIEving parent for item: No resource found that matches the given name '@androID:TextAppearance.Material.SearchResult.SubTitle'.Error:Error retrIEving parent for item: No resource found that matches the given name '@androID:TextAppearance.Material.SearchResult.Title'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Small'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Small.Inverse'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Subhead'.Error:Error retrIEving parent for item: No resource found that matches the given name 'androID:TextAppearance.Material.Title'.
解决方法:
当然,你在API< 21中遇到这些错误,因为androID:TextAppearance.Material和其他(Material)是在API 21中引入的.AppCompat正在移植资源,但它们没有使用androID:前缀(我无法检查这个如果这些你也在使用,但可能是的).如果您使用API 21编译应用程序并在较低的API设备上运行,则也会发生崩溃androID:prefix指的是内置的params,它应该在所有支持的API版本(minSDK)中. API21之前的系统中不存在材料
总结以上是内存溢出为你收集整理的如何使用appcompat-v7与Android API 19全部内容,希望文章能够帮你解决如何使用appcompat-v7与Android API 19所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)