ARouter踩坑之'ARouter::: ARouter::There is no route match the path [/MyRouter2/ARouter3Activity] '

組件化開發中,使用了ARouter作爲路由組件,使用過程中出現了

'ARouter::: ARouter::There is no route match the path [/MyRouter2/ARouter3Activity] '

原因

使用了@Route註解的module

@Route(path = "/MyRouter2/ARouter3Activity")

都必須引用'annotationProcessor 'com.alibaba:arouter-compiler:1.2.2',否則編譯過程中不會生成對應的文件。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章