Hi all,
Just switched to AndroidStudio 2.2 and trying to get the new ndkBuild
process to work. Not having any issues with the actual ndkBuild step
everything seems to succeed and I get a generated .so file in the build
folder; however, when the final apk is generated it doesn't look like the
.so file is included in it (.so file is ~1gb and .apk is 19mb).
Here is the gradle.build file:
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.app.test"
minSdkVersion 14
targetSdkVersion 23
// Enabling multidex support.
multiDexEnabled true
dexOptions {
javaMaxHeapSize "4g"
}
externalNativeBuild {
ndkBuild {
targets "TestApp"
arguments "NDK_TOOLCHAIN_VERSION:=clang","-j8"
cppFlags "-O2",
"-std=c++14","-frtti","-fpermissive","-fexceptions","-ferror-limit=1","-Qunused-arguments","-Wno-extern-c-compat","-Wno-deprecated-register"
abiFilters "armeabi-v7a"
}
}
}
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
}
}
productFlavors {
create("arm7")
}
}
--
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.