Skip to content

Conflict with c++_shared  #47

@renetik

Description

@renetik

I believe library shall not add its own c++_shared lib.
When we have build arguments:

android {
    compileSdkVersion project.properties.sdk_version
    defaultConfig {
        minSdkVersion project.properties.min_sdk_version
        targetSdkVersion project.properties.sdk_version
        externalNativeBuild {
            cmake {
                cppFlags "-std=c++14 -fexceptions"
                arguments "-DANDROID_ARM_NEON=TRUE",'-DANDROID_STL=c++_shared'
            }
        }
    }

Build fails with:

2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:

  • /Users/renetik/Development/renetik-instruments-android/project/renetik-instruments-library-audio/build/intermediates/library_jni/debug/jni/arm64-v8a/libc++_shared.so
  • /Users/renetik/.gradle/caches/transforms-3/49930d1a19493a31fa0ff855b95c71e4/transformed/jetified-mobile-ffmpeg-full-4.4/jni/arm64-v8a/libc++_shared.so
    If you are using jniLibs and CMake IMPORTED targets, see
    https://developer.android.com/r/tools/jniLibs-vs-imported-targets

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