[Solved] ARouter Error: There is no route matched

1. Problem description

There is no route matched when ARouter implements communication between components

My code design is as follows:

Defined in submodule:

interface InitApi : IProvider

Defined in the main module:

@Route(path = "/child/init/net")
class NetworkInitializer : InitApi {
    override fun init(context: Context?) {

    }
}

Then read in the submodule:

ARouter.getInstance().build(route).navigation() as InitApi

2. Solution

Uninstalling and reinstalling the app, it runs normally.

 

Read More: