体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的应该都会报错Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.在app的build中android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ...}Mr.Smile填坑记——AndroidStudio3.0 Can
-
动图解释递归,按值传递和按引用传递的区别,线性查找和二分查找,二叉查找树
对于大部分人,数据结构一直是一个短板,当然我也是,不是学不会,而是容易忘,就拿最简单的排序来说吧,当时学习的时候明明已经弄得很清楚了,过了一段时间不用又忘记了,还要重新再看一遍,不知道有多少小伙伴和我有一样的烦恼。今天让我们用用动图的方式学习一下数据结构中的递归和二分查找吧,这种讲解方式非常生动,而且非常容易记住和理解。
-
@GetMapping和@PostMapping 和@RequestMapping区别
然后呢,除了get post Mapping,还有其他@PutMapping,@PatchMapping,@DeleteMapping等mapping,也都能用@RequestMapping来解决。
-
BigDecimal与Long、int之间的互换
int 转换成 BigDecimal,Lont 转换成 BigDecimal,BigDecimal 转换成 Long,BigDecimal 转换成 int
-
java.math.BigDecimal 比较大小
BigDecimal,比较大小,compare
-
百青藤 密码不合法怎么处理
百青藤,密码不合法,下面教你怎么个人注册百青藤。
-
js获取当前时间的前一天/后一天
var preDate = new Date(curDate.getTime() - 24*60*60*1000);
-
vue中mixins的详细分析一
混入 (mixins): 是一种分发 Vue 组件中可复用功能的非常灵活的方式。混入对象可以包含任意组件选项。当组件使用混入对象时,所有混入对象的选项将被混入该组件本身的选项。
-
vue中mixins的详细分析二
当混合里面包含异步请求函数,而我们又需要在组件中使用异步请求函数的返回值时,我们会取不到此返回值,如下:
-
Idea或webstrom配置webpack设置路径alias实现代码自动补全功能
做开发的时候,每次import想要代码提示,通过../../src/components长长的相对路径用起来很不方便,通过配置webpack的alias就可以让ide实现代码自动补全功能
-
python2.7和python3.6下载地址
python2.7,python3.6下载地址