ARouter引入失败 There is no route match the path 原因
- 未配置模块的
java 配置
android {
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
}
kotlin 配置
android {
defaultConfig {
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
}
}
- 不同模块的 一级路径名(也叫group)同名,避免同名的情况
- InstantRun问题,重新卸载安装生效