This inspection looks at Android API calls that have been annotated with various support annotations (such as RequiresPermission or UiThread) and flags any calls that are not using the API correctly as specified by the annotations.

在报错所在类的位置添加注解

@SuppressWarnings("ResourceType")

转载于:https://www.cnblogs.com/gting/p/5828959.html

Error:Excepted resource of type id相关推荐

  1. Android Studio之Error:(158) Error: Expected resource of type id [ResourceType]

    Android Studio在输出apk包时,在检查代码规范性方面相比Eclipse要严格得多,以下代码可在Eclipse编译通过, Android Studio控制台报错:Error:(158) E ...

  2. Androidstudio下Generate signed apk提示Error: Expected resource of type id [ResourceType]解决办法...

    只需要在报错位置所在的类上面添加: @SuppressWarnings("ResourceType") 即可实现Generate signed apk.

  3. Why am I getting this error “Expected resource of type raw” in Android Studio?

    http://stackoverflow.com/questions/32038476/why-am-i-getting-this-error-expected-resource-of-type-ra ...

  4. redisson get()数据报错,missing type id property ‘@class’

    redisson get()数据报错: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when ...

  5. Format specifies type 'id' but the argument has type 'NSError *__autoreleasing *

    我想打印error,但是出现了标题中的错误,代码如下: -(id)yobee_responseObjectForResponse:(NSURLResponse *)response data:(NSD ...

  6. postgresql Monetary Types to BigDecimal ,error - Bad value for type BigDecimal : 2,500.00

    postgresql  Monetary Types to BigDecimal ,error -> Bad value for type BigDecimal : 2,500.00 因为从数据 ...

  7. sqldeveloper fedora 20 [error occurred during error reporting (printing problematic frame), id 0xb]

    fedora 20 运行sqldeveloper失败,尝试了修改jvm 更换jdk版本 各种清理缓存,仍然失败,最后发现了这个方法: $unset GNOME_DESKTOP_SESSION_ID $ ...

  8. Parsing error processing resource path jndi:/localhost/JOA/WEB-INF/struts-config

    快要下班的时候,项目来了问题! 技术架构:struts1.3+spring2.5+hibernate3.2 项目结果在启动时就来了个错:Parsing error processing resourc ...

  9. error: Error: No resource found for attribute ‘layout_scrollFlags’ in package‘包名’

    遇到error: Error: No resource found for attribute 'layout_scrollFlags' in package'包名' 这个问题时候刚开始自己也是感觉到 ...

  10. appcompat_v7\res\values-v21\themes_base.xml:158: error: Error: No resource

    C:\DevelopSoft\workspace\appcompat_v7\res\values-v21\themes_base.xml:158: error: Error: No resource ...

最新文章

  1. hdu2008——数值统计
  2. 高煥堂 5本 Android 的 eBooks (完整版Free)
  3. 2019热门JAVA面试问题
  4. Go中的Map实现机制
  5. 教你使用stm32接收串口的一帧数据!
  6. java中接口适配器实现,12.1.8 Java中的应用-AWT事件适配器(接口的适配器模式)...
  7. 计算机cpu 和 主板型号,CPU和主板怎么搭配?intel七代/八代/九代处理器和主板搭配对照表...
  8. 2019宁波最重视的行业
  9. TLS是如何保障数据传输安全(中间人攻击)
  10. 单列集合List的实现类
  11. JSP的9个内置对象-request
  12. 百度2017春招笔试
  13. virtual box和vmware有什么区别吗_真发假发套与普通假发有什么区别吗?
  14. Python基础——使用with结构打开多个文件
  15. Java零拷贝四步曲——HeapByteBuffer与DirectByteBuffer
  16. 推荐系统-Task04前后端基础及交互
  17. Logisim-Gates library
  18. 解决:微软拼音输入法不显示选字栏,微软的拼音输入法第一个候选词不显示
  19. Servlet、ServletConfig、ServletContext
  20. Epub电子书的格式(二)

热门文章

  1. c语言程序设计ppt算法,C语言程序设计算法.ppt
  2. [137]win10想开测试模式,提示“设置元素数据时出错
  3. Thinkphp6快速入门一
  4. 我过去1个月的上课总结
  5. java微信支付通知接口_java实现微信支付结果通知
  6. s3c2416 AT070TN83的LCD wince6.0驱动移植
  7. Excel批量复制公式、删除空白行
  8. php文件如何转为ppt,pdf文件转换成ppt文件 pdf如何转为ppt
  9. 《价值投资 从看懂财务报表开始》 读书笔记
  10. shader从入门到精通——(二)三大主流编程语言