When developing instrumental tests for my android application, I'm faced with a problem and I do not see why this happens.
Why is MainActivity not recognized?
You need to import, because your tests should be in: module-name / src / androidTest / java while the MainActivity class is in: module-name / src / java.