Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Test Auxillary Files #1851

Open
gavinweng opened this issue Jul 7, 2023 · 1 comment
Open

Missing Test Auxillary Files #1851

gavinweng opened this issue Jul 7, 2023 · 1 comment

Comments

@gavinweng
Copy link

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:

@brettchabot
Copy link
Collaborator

Can you post a sample project that repros this issue? Otherwise, I fear this issue won't be actionable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants