ARouter 接入踩坑记录

依赖引入

  • common module dependencies
1
api 'com.alibaba:arouter-api:1.5.0'
  • biz module dependencies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
android {
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
}

dependencies {
annotationProcessor 'com.alibaba:arouter-compiler:1.2.2'
implementation project(':common')
}

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :