Skip to content

Android binary JNI dependency name conflicts #339

@XperielIndigo

Description

@XperielIndigo

Hi everyone,

I'm linking a cc_library tree to an android_binary and I'm running into a naming issue.

Apparently no cc_library can share the same local name (e.g. "common").

When I try to build my android_binary I get the follow error (example):

ERROR: /path/to/android/binary/BUILD:1:1: in android_binary rule //path/to/binary/binary:binary: Each library in the transitive closure must have a unique basename, but two libraries had the basename "libcommon.so": path/to/first/common/libcommon.so and path/to/second/common/libcommon.so

Is there anyway of getting around this without giving the path of the build in the basename?

Cheers
Indigo

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