Pb(100) The method getType() is undefined for the type new TypeToken<List<String>>(){}
来源:互联网 发布:龙之信条身材捏脸数据 编辑:程序博客网 时间:2024/06/05 02:40
使用了greendao,在bean里面用了@Keep,然后将集合和json来回转换,用到了如下代码:
Gson gson = new Gson();gson.fromJson(cacheUser.getJsonFriends(),new TypeToken<List<String>>(){}.getType());
然后Build时报错上面那条。放到别的类正常,不解,记录一下。
阅读全文
0 0
- Pb(100) The method getType() is undefined for the type new TypeToken<List<String>>(){}
- The method isEmpty() is undefined for the type String/String
- The method setCharacterEncoding(String) is undefined for the type HttpServletResponse
- The method setCharacterEncoding(String) is undefined for the type HttpServletResponse
- The method fromObject(String) is undefined for the type JSONObject
- The method isEmpty() is undefined for the type String
- The method setCharacterEncoding(String) is undefined for the type HttpServle
- he method isEmpty() is undefined for the type String/String
- the method d(string string) is undefined for the type log
- The method DataOutputStream(OutputStream) is undefined for the type new Runnable(){}
- 开发中碰到的问题:The method getSystemService(String) is undefined for the type CourseFragment
- jfinal报错The method renderText(String) is undefined for the type HelloController
- 运行maven项目报错:The method queryForInt(String) is undefined for the type JdbcTemplate
- jeeplus 使用:The method setShi(String) is undefined for the type addRow_tag
- 错误提示:The method parseInt(String) is undefined for the type Loginsample
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory!
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
- Oracle归档日志写满(ORA-00257错误)
- Ubuntu12.04NFS挂载根文件系统
- UITabBarItem与UIImageRenderingMode
- Selenium + Pycharm+python3.6自动化环境搭建
- fragment遇到getactivity为空的情况
- Pb(100) The method getType() is undefined for the type new TypeToken<List<String>>(){}
- 获取当前年份后两位
- GCC基础
- 进制转换
- 『MACHINE LEARNING』读书笔记|周志华《机器学习》|5.2神经网络感知机
- 使用nat123实现外网访问局域网中的linux主机
- Linux学习心得(一)
- bootstrap之code&grid样式
- 初识ajax