记录一下本人使用ARouter遇到的一个问题(kotlin)
private fun initARouter() {
ARouter.init(this)
if (BuildConfig.DEBUG) {
ARouter.openLog()
ARouter.openDebug()
}
}
这段代码看上去很正常,但是无法实现跳转,报出错误,‘There is no route match the path …’,后来经过搜索网友的答案,发现很多人也遇到了,但千篇一律检查module是否引入
正确使用
private fun initARouter() {
if (BuildConfig.DEBUG) {
ARouter.openLog()
ARouter.openDebug()
}
ARouter.init(this)
}
具体原因不详,欢迎各位解答