For subclasses that inherit the parent class, the parent class then inherits the BaseActivity. If the BaseActivity uses the inject() method, you need to write
@Autowired open lateinit var hardware: HardWare
Write in subclass:
@Autowired override lateinit var hardware: HardWare
In this way, the problem of Arouter inject error will not be caused