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
Read More:
- [Solved] Error: The superclass, ‘Animal‘, has no unnamed constructor that takes no arguments.
- Error:invalid new-expression of abstract class type XXX [How to Solve]
- IIS Web Deploy Website Error: HTTP error 500.19 – Internal Server Error
- [Fixed] error: ‘start‘ is a private member of ‘QThread‘
- [Solved] Request processing failed; nested exception is java.lang.NullPointerException
- [Solved] Vsync Error: this error in animationcontroller in fluent
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- QT solves error: use of deleted function and is private within this context
- [Solved] Error: Cannot fit requested classes in a single dex file (# methods: 149346 > 65536)
- Pyqt5 Error: AttributeError: ‘QWidget‘ object has no attribute ‘setCentralWidget‘
- [Solved] But was actually of type ‘com. Sun. Proxy. $proxy**‘
- Flash back problem when Android studio plays music in sdcard through intent
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- [Solved] hytrix service degraded bean cannot inject error
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- Monkey error: error: A RuntimeException occurred [How to Solve]
- Aspecj cannot intercept method annotations on an interface
- [Solved] QT Error: error: undefined reference to `GameModel::~GameModel()’
- Springboot connects to the database error: testWhileIdle is true, validationQuery not set