This page list the skills which are useful regards to AndroidStudio.

Configuration Skills

Packs SO files To APK

To tell Android Studio to pack the SO files (JNI) to the APK file, you can add one line to the "build.gradle" file of your project:

android {
    compileSdkVersion 19
    buildToolsVersion "21.1.2"

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            jniLibs.srcDirs = ['libs']  // <---- ** NOTES **: insert this line

Refers to external module

Sometimes you want to refers to an external module which is not in your project, and you don't want to copy the code of that module into the project, then you could do that by following the tip in this link:

Last modified 4 years ago Last modified on Jan 21, 2015, 2:25:07 PM