annotationProcessor

起因

今天看见一篇 Google 官方推出应用开发架构指南,想自己尝试一下,结果在导入官方库lifecycle和room的时候遇到了一些小麻烦

  • androidstudio3.0 canary1版本,设置代理或者普通都链接不到
    1
    maven { url 'https://maven.google.com' }

更换回正式版2.3.2正常了

  • 遭遇错误 Error:Failed to resolve: annotationProcessor
1
2
3
4
5
6
7
8
9
10
11
android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments = ["library" : "true"]
}
}
}
}

在使用annotationProcessor 的gradle里添加恢复正常

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment