体验最新版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
-
A cookie associated with a cross-site resource at <URL> was set without the `SameSite`
非 SSL 、没域名、跨站点、IE 浏览器如何做 Cookie 共享。
-
Vue实现生成二维码并且能下载到本地
个人推荐vue-qr,好用,还能下载二维码
-
使用Vue的插件clipboard使用复制功能
使用Vue的插件clipboard使用复制功能
-
php今年已经过了多少天
过去某天到今天过了多少时间了
-
“git pull” 强制覆盖本地文件
放弃本地修改,使用服务器代码覆盖本地的Git命令
-
break和continue详解for循环
1. break:直接跳出当前循环体(while、for、do while)或程序块(switch)。其中switch case执行时,一定会先进行匹配,匹配成功返回当前case的值,再根据是否有break,判断是否继续输出,或是跳出判断(可参考switch的介绍)。 2. continue:不再执行循环体中continue语句之后的代码,直接进行下一次循环。
-
vue报错 Uncaught ReferenceError: exports is not defined
有两种解决办法,1.改为Es6方式,2修改.babelrcf
-
vue使用lodash
vue使用lodash进行开发
-
require和import的区别和详解
该用require还是import?
-
Vue methods 用箭头函数取不到 this
关于vue methods不能使用箭头函数的内容如下