Hilt dependency injection for UI testing says "HiltAndroidRule" wasn't added but it was
You must wrap it using RuleChain
or by applying order
parameter to the Rule
Annotation.
It is explained in detail here: https://developer.android.com/training/dependency-injection/hilt-testing#multiple-testrules