0

found error while build the project with NDK

error

More than one file was found with OS independent path 'lib/armeabi-v7a/libmxecg.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake

apply plugin: 'com.android.library'

android {
compileSdkVersion config.compileSdk

defaultConfig {
    minSdkVersion config.minSdk
    targetSdkVersion config.targetSdk
    versionCode config.versionCode
    versionName config.versionName
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

sourceSets {
    main {
        // let gradle pack the shared library into apk
        jniLibs.srcDirs = ['libs/libmxecg/lib']

    }
}

externalNativeBuild {
    cmake {
        path "CMakeLists.txt"
    }
}

}

enter image description here

In another module i also use Cmake and it works fine when i add another module with Cmake it shows error.

Ahmad
  • 47
  • 1
  • 11

0 Answers0