As of ADT 14, resource fields cannot be used as switch cases. Invoke this fix to get more information. whats the reason this is used for?

Take a look at the official blog post about this:

http://tools.android.com/recent/switchstatementconversion

http://tools.android.com/tips/non-constant-fields

Basically, resource constants in library projects are no longer "final". From the ADT Site:

In other words, the constants are not final in a library project. The reason for this is simple: When multiple library projects are combined, the actual values of the fields (which must be unique) could collide. Before ADT 14, all fields were final, so as a result, all libraries had to have all their resources and associated Java code recompiled along with the main project whenever they were used. This was bad for performance, since it made builds very slow. It also prevented distributing library projects that didn't include the source code, limiting the usage scope of library projects.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 表格和列表制作
  2. 我的第三课作业
  3. 广州市文德路小学六年级课程表
  4. html基础:表单元素及多媒体标签学习及实战
  5. 使用HTML制作简单注册页面和后台管理页面
  6. 简单的后台管理页面
  7. 注册效果与简易后台界面演示如何用html代
  8. 2022年0705表单与后台框架轻量级开发演示
  9. html表单元素以及多媒体标签
  10. 2022年0705表单与后台框架轻量级开发演示