bazelbuild / bazelbuild/rules_android

`filter_zip_exclude` strips test APK classes needed at runtime for instrumentation tests

Open
#474 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
203
Forks
95
PR merge metrics
No merged PRs in 30d

Description

When building an instrumentation test with android_binary + instruments, _process_deploy_jar removes all .class files from the test APK that overlap with the app's deploy jar. This causes ClassNotFoundException at runtime because the test APK's classloader can't find classes that were filtered out.

Repro: https://github.com/snazhmudinov/rules_android-process-crash-repro

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.