for my sample project I am using the following Assimp-gradle buid file and it works fine for me. One important note: disable the unittest stuff ( the option ASSIMP_BUILD_TESTS must be set to off ) because there is a bug in assimp regarding pthread support for gtest.
android {
compileSdkVersion 24
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.app.kkulling_solutions.assimpviewer"
minSdkVersion 21
targetSdkVersion 24
versionCode 1
versionName "1.0"
externalNativeBuild {
cmake {
arguments '-DASSIMP_BUILD_ZLIB=ON -DASSIMP_BUILD_TESTS=OFF'
cppFlags '-fexceptions -frtti -std=c++11'
}
}
//-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path 'src/main/cpp/JNI/CMakeLists.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
}
Let me know if you have any other questions!