Skip to content

filter_zip_exclude strips test APK classes needed at runtime for instrumentation tests #474

@snazhmudinov

Description

@snazhmudinov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions