Skip to content Skip to sidebar Skip to footer

Android-ndk Generating Wrong Command

I have a problem with android ndk-build not copying my shared libraries to intermediates/ndkbuild folder. I have created my modules in the Android.mk like this: Android.mk LOCAL_PA

Solution 1:

  1. Check your ndk path in local.properties file in project folder. It shows ndk-bundle path for building makefiles.

    ndk.dir=/Users/../Library/Android/sdk/ndk-bundle
    
  2. Check build scripts in gradle file. This script shows where shared libs should be located:

    sourceSets.main {
       jni.srcDirs = []
       jniLibs.srcDir 'src/main/libs'
    }
    

    And this shows makefile path for ndk-building:

    externalNativeBuild {
        ndkBuild {
            path'src/main/jni/Android.mk'
        }
    }
    

Check my another answer also, maybe it'll help you. Linking shared libraries

Post a Comment for "Android-ndk Generating Wrong Command"