android-test
android-test copied to clipboard
Missing Test Auxillary Files
Description
Test randomly failed due to unable to find jar files.
Steps to Reproduce
N/A
Expected Results
Tests should succeed.
The following version combination, when used for the same tests, doesn't crash. androidx.test:core:1.4.0 androidx.test:orchestrator:1.4.2
Actual Results
06-29 13:21:12.741 5172 5496 E System : Unable to open zip file: /data/user/0/*******/cache/kCEF6s79.jar
06-29 13:21:12.742 5172 5496 E System : java.io.FileNotFoundException: /data/user/0/*******/cache/kCEF6s79.jar (No such file or directory)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.open(Native Method)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.<init>(ZipFile.java:265)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.<init>(ZipFile.java:187)
06-29 13:21:12.742 5172 5496 E System : at java.util.jar.JarFile.<init>(JarFile.java:169)
06-29 13:21:12.742 5172 5496 E System : at java.util.jar.JarFile.<init>(JarFile.java:106)
06-29 13:21:12.742 5172 5496 E System : at libcore.io.ClassPathURLStreamHandler.<init>(ClassPathURLStreamHandler.java:46)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList$Element.maybeInit(DexPathList.java:751)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList$Element.findResource(DexPathList.java:778)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList.findResources(DexPathList.java:573)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.BaseDexClassLoader.findResources(BaseDexClassLoader.java:259)
06-29 13:21:12.742 5172 5496 E System : at java.lang.ClassLoader.getResources(ClassLoader.java:839)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:349)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:402)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:488)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadService(ServiceLoaderWrapper.java:49)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadSingleServiceOrNull(ServiceLoaderWrapper.java:89)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadSingleService(ServiceLoaderWrapper.java:72)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.core.app.ActivityScenario.<init>(ActivityScenario.java:150)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.core.app.ActivityScenario.launch(ActivityScenario.java:234)
.......
AndroidX Test and Android OS Versions
androidx.test:core:1.5.0 androidx.test:orchestrator:1.4.1 Emulator: Android 30 Google API.
Link to a public git repo demonstrating the problem:
Can you post a sample project that repros this issue? Otherwise, I fear this issue won't be actionable