Hi, I use the latest Android Studio 0.5.1 for project development.
Here comes the question for NDK build problem.

I put 3rd party native libraries(.a files) in /src/main/libs
And related header files in /src/main/include

My build.gradle look like this

ndk {
        File curDir = file('./')
        curDir = file(curDir.absolutePath)
        String linkOpt = "-L" + curDir.absolutePath+"/src/main/libs"
        String incOpt = "-I" + curDir.absolutePath+"/src/main/include"

        moduleName "VisualSearch_Okao"
        cFlags incOpt
        ldLibs "log " + linkOpt + " -lmy3rdLib1  -lmy3rdLib2" 

        stl "stlport_static"
}

But this still can't work, did anyone knows how to link 3rd libraries by 
build.gradle without key in 'ndk-build'  manually.
Thanks! 

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to