工具
一步三跌倒
做真实的自己,快乐的生活...
展开
-
cannot resolve symbol 'XXXX'
情况:这个提示不影响编译,程序也正常运行,但是如果你直接点击该类或者文件找不到该文件,如果要打开的话,必须在程序找到该Java文件然后双击才能打开。 结论:是缓存的问题。 android studio 的解决方法: 方法1."Build " -> "Clean project" 方法 2."Tools" -> "Android" -> "Sync Project with Gr原创 2015-10-20 10:27:07 · 556 阅读 · 0 评论 -
diamond types are not supported at this language level
stackoverflow:In File Menu → Project Structure → Project, change Project Language Level to 8.0 - Lambdas, type annotations etc. 中文:http://demo.netfoucs.com/aliaooooo/article/details/42536295转载 2015-10-20 10:39:25 · 3456 阅读 · 0 评论 -
生日计算(距某个时间的年月日,前/后)
其中出生前的return可自定义,详情见代码: public static String getBirthDay(long birthTime, long nTime) { //是否为出生前 boolean gestation = false; if (birthTime > nTime) { gestation = tr原创 2018-01-03 17:52:35 · 2254 阅读 · 0 评论