解决 No resource found that matches the given name (at 'icon' with value '@drawable/icon') 问题
2015-03-27 18:24
344 查看
对新解决方案Xamarin的Android项目在项目属性
换图标后 会出现 No resource found that matches the given name (at 'icon' with value '@drawable/icon'). 错误
解决方法是
修改 包含 MainLauncher = true 的 Activity
注意无论你的icon.png图片在drawable,drawable-ldpi,drawable-mdpi,drawable-hdpi或者在项目下(文件生成操作为:内容,非AndroidResource)
都是
换图标后 会出现 No resource found that matches the given name (at 'icon' with value '@drawable/icon'). 错误
解决方法是
修改 包含 MainLauncher = true 的 Activity
[Activity(Label = "LayoutTest", MainLauncher = true, Icon ="@drawable/icon")]// "@drawable/icon")] public class MainActivity : Activity { }
注意无论你的icon.png图片在drawable,drawable-ldpi,drawable-mdpi,drawable-hdpi或者在项目下(文件生成操作为:内容,非AndroidResource)
都是
Icon ="@drawable/icon" 目前此方法运行正常,由于初学更深的原理不知
相关文章推荐
- Android问题-No resource found that matches the given name (at 'theme' with value '@style/CaptureTheme').
- Error: No resource found that matches the given name (at 'icon' with value '@mipmap/Icon')
- error: Error: No resource found that matches the given name (at 'entries' with value '@array/baudrates_name').
- error: Error: No resource found that matches the given name (at 'text' with value '@string/
- error: Error: No resource found that matches the given name (at 'layout_above' with value '@id/btnLayout').
- No resource found that matches the given name 'android:Widget.Material.ActionButton'的原因及解决方法
- Android布局问题: No resource found that matches the given name (at 'layout_above' with value @id/tv)
- 解决Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android
- No resource found that matches the given name 'android:Widget.Material.ActionButton'解决
- 解决No resource found that matches the given name :Theme.AppCompat.Light error: Error retrieving paren
- android No resource found that matches the given name attr的一种解决办法
- No resource found that matches the given name 'android:Widget.Material.Button.Colored' 解决
- Android开发中error: Error retrieving parent for item: No resource found that matches the given name解决方法
- 图片资源添加出现问题: No resource found that matches the given name
- Android:Error retrieving parent for item: No resource found that matches the given name解决方法
- 解决 No resource found that matches the given name (at 'layout_above' with value '@id/button3').
- No resource found that matches the given name 'android:TextAppearance.Material...'解决办法
- appcompat-v7 版本造成的问题No resource found that matches the given name 'android:TextAppearance.Material.W
- Android问题集锦之二十一:No resource found that matches the given name
- 解决 Error retrieving parent for item: No resource found that matches the given name '