Android .aar
usually only contain *.jar
, *.so
and asset related resources.
How to include *.so
related header files inside .aar
?
Android .aar
usually only contain *.jar
, *.so
and asset related resources.
How to include *.so
related header files inside .aar
?
Try to use AndroidNativeBundle plugin.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
//Add androidNativeBundle dependency
classpath "io.github.howardpang:androidNativeBundle:1.1.1"
}
}
plugins {
id 'com.android.library'
id 'com.ydq.android.gradle.native-aar.export'
}
nativeBundleExport {
headerDir = "${project.projectDir}/native/export/header/path"
}