Eclipse下创建了一个安卓应用
结果

/Users/123/Documents/workspace/Demo1/AndroidManifest.xml.:11: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').

说是改地址下没有匹配的引用名称。

报错

AndroidManifest.xml:11: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher')

错误发生在

AndroidManifest.xml

中的

android:icon="@drawable/ic_launcher"

经查drawable文件夹下确实没有ic_launcher。
在minpmap文件夹下有ic_launcher。
Android新建项目报错android:icon=
看了网上许多网友反映的问题,应该是SDK升级之后出现的问题,估计是更改了原有的存放位置。
只要将代码

android:icon="@drawable/ic_launcher"

改为

android:icon="@mipmap/ic_launcher"

问题即可解决。

更多相关文章

  1. Android国际化资源 文件夹命名规范
  2. Android在MTP模式下,只显示指定文件夹
  3. android2.2资源文件详解4--menu文件夹下的菜单定义
  4. Android学习笔记(11)————Android的私人文件夹的文件读写操作
  5. android java复制和压缩文件或文件夹
  6. Android创建文件夹及文件并写入数据
  7. 读取android根目录下的文件或文件夹
  8. Android native/C/C++ 监控文件夹变化

随机推荐

  1. 常用的php正则表达及语法注解总结
  2. PHP如何生成静态页面
  3. PHP中面向对象之Static关键字详解(代码实
  4. PHP魔术方法之__get,__set详解(代码实例)
  5. 正式开源的优雅测试框架 PestPHP
  6. PHP魔术方法之__call和__callStatic详解(
  7. PHP面向对象之3种数据访问方式详解(代码实
  8. PHP时间戳和日期格式相互转换
  9. php面向对象之析构函数和对象引用
  10. PHP中面向对象之继承