简体   繁体   中英

Android NDK without experimental gradle

I have some confusion in the structure of the NDK built for the android studio 2.2.3 because now NDK not working with experimental gradle and cmake introduce which is new for me.

I have prebuilt shared library and I want to use into my project so, is it required to add Android.mk file and Application.mk file? If it is required then how do I link it with gradle? Please any one remove my confusion for the NDK.

If you work with prebuilt libraries, you don't need experimental plugin and you don't need to worry about CMake. The 'normal' Android plugin looks for the prebuilt libraries in src/main/jniLibs , but you can override this in the build.gradle file:

android { sourceSets { main { 
    jniLibs.srcDirs = ['libs'] 
}}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM