But AndroidJUnit4 and ActivityTestRule are not recognized and I can't import them.
My Android Studio:
Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 8
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: com.microsoft.vso.idea, org.intellij.plugins.markdown
I'm trying to do the first exercise. I added maven repository in the
build.gradle
of the project, without this I can't compile the project:Then I added the dependecies in the
build.gradle
of the app:apply plugin: 'com.android.application'
But AndroidJUnit4 and ActivityTestRule are not recognized and I can't import them.
My Android Studio: Android Studio 4.0 Build #AI-193.6911.18.40.6514223, built on May 20, 2020 Runtime version: 1.8.0_242-release-1644-b01 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 1237M Cores: 8 Registry: ide.new.welcome.screen.force=true Non-Bundled Plugins: com.microsoft.vso.idea, org.intellij.plugins.markdown