robolectric
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| robolectric [2019/09/03 14:56] – lindol | robolectric [2020/09/12 08:45] (현재) – lindol | ||
|---|---|---|---|
| 줄 5: | 줄 5: | ||
| <code Groovy> | <code Groovy> | ||
| - | testImplementation ' | + | testImplementation ' |
| testImplementation ' | testImplementation ' | ||
| + | </ | ||
| + | |||
| + | ===== Why robolectric needs to use jdk9 from Q ===== | ||
| + | |||
| + | Robolectric 이 AOSP framework build 에 기반해서 만들어지는데, | ||
| + | |||
| + | 관련 링크: https:// | ||
| + | |||
| + | ====== Troubleshooting ====== | ||
| + | |||
| + | Android studio 4.0에서 OpenJdk 11 (or 9이상)으로 Robolectric Unit test 실행시 아래의 에러가 날 경우 | ||
| + | |||
| + | <code Bash> | ||
| + | WARNING: An illegal reflective access operation has occurred | ||
| + | WARNING: Illegal reflective access by org.robolectric.util.ReflectionHelpers$6 (file:/ | ||
| + | WARNING: Please consider reporting this to the maintainers of org.robolectric.util.ReflectionHelpers$6 | ||
| + | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | ||
| + | WARNING: All illegal access operations will be denied in a future release | ||
| + | [Robolectric] com.example.unittest.MainActivityTest.testSimpleLoad: | ||
| + | Downloading from maven | ||
| + | Downloading: | ||
| + | Error transferring file: java.security.NoSuchAlgorithmException: | ||
| + | [WARNING] Unable to get resource ' | ||
| + | </ | ||
| + | |||
| + | 해결 방법: Robolectric 4.4 로 버전 올리기 ([[https:// | ||
| + | |||
| + | <code Groovy> | ||
| + | | ||
| </ | </ | ||
robolectric.1567522612.txt.gz · 마지막으로 수정됨: 2019/09/03 14:56 저자 lindol