이런 에러는 처음이라서 질문 드립니다.
먼저 자바파일 중에 AndriodTest안에 instrumenredTest.Java 파일에서 에러가 발생합니다.
빌드 아웃풋에 멘트는 아래의 참고글과 같고 코팅 영역 에서는 아래 그림1 과 같이 빨간색으로 에러가 떠있습니다.
안드로이드 스튜티오 버젼은 3.5.1입니다.
아마 음성을 넣으면서 이런 애러가 발생한 것 같은데 도움 부탁드립니다 ㅜㅜ
두서없이 쓴 긴 글 읽어주셔서 감사합니다 ㅜㅜ
[그림1]
import androidx.test.ext.junit.runners.AndroidJUnit4;
@RunWith(AndroidJUnit4.class)
[참고글(Output 에러 메세지)]
> Task :app:compileDebugAndroidTestJavaWithJavac FAILED
C:\Users\Public\RockPaperScissors\app\src\androidTest\java\com\example\rockpaperscissors\ExampleInstrumentedTest.java:6: error: package androidx.test.ext.junit.runners does not exist
import androidx.test.ext.junit.runners.AndroidJUnit4;
^
C:\Users\Public\RockPaperScissors\app\src\androidTest\java\com\example\rockpaperscissors\ExampleInstrumentedTest.java:18: error: cannot find symbol
@RunWith(AndroidJUnit4.class)
^
symbol: class AndroidJUnit4
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
23 actionable tasks: 16 executed, 7 up-to-date