Project is made in Android Studio. It's Java+C through NDK. Android Studio is generating *.so files. How to change it to *.a files?
.so files are made by gradle NDK. (without .mk files)
Is there a method/flag in gradle to ask for a static library (.a file)? (I need to share that .a and not .so)
Gradle file:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.1'
defaultConfig {
    minSdkVersion 10
    targetSdkVersion 19
    versionCode 1
    versionName '1.0'
    ndk
    {
        moduleName "mylib"
        ldLibs  "m", "log", "android", "jnigraphics"
    }
}
// This actual the app version code. Our given range is [0, 99999]
defaultConfig.versionCode = 3
// 2 dimensions of flavors. API is more important than ABI.
flavorDimensions "abi"
productFlavors {
    x86 {
        dimension "abi"
        ndk {
            abiFilter "x86"
        }
        // this is the flavor part of the version code.
        // It must be higher than the arm one for devices supporting
        // both, as x86 is preferred.
        versionCode = 3
    }
    arm {
        dimension "abi"
        ndk {
            abiFilter "armeabi-v7a"
        }
        versionCode = 2
    }
    mips {
        dimension "abi"
        ndk {
            abiFilter "mips"
        }
        versionCode = 1
    }
    fat {
        dimension "abi"
        // fat binary, lowest version code to be
        // the last option
        versionCode = 0
    }
}
// make per-variant version code
applicationVariants.all { variant ->
    // get the version code of each flavor
    def abiVersion = variant.productFlavors.get(0).versionCode
    // set the composite code
    variant.mergedFlavor.versionCode = abiVersion * 100000 + defaultConfig.versionCode
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}
dependencies {
compile 'com.android.support:appcompat-v7:19.+'
compile fileTree(include: ['*.jar'], dir: 'libs')    
}