Instrumental Tests Android Studio

Asked

Viewed 109 times

1

When designing instrumental tests for my android app, I come across a problem and I don’t see why this should happen.

inserir a descrição da imagem aqui

Why Mainactivity is Not Recognized?

1 answer

0


You need to import because your tests must be in: module-name/src/androidTest/java while the Mainactivity class is in: module-name/src/java.

  • he doesn’t allow me to import, seems to ignore

  • i import with.example.example.Activity; @Diniz and says it does not recognize Activity

  • I got it sorted! Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.