请问微信sdk .dll/.so 如何引入?

请问微信sdk .dll/.so 如何引入????
需要在web模块 引入微信的一个接口sdk 希望通过
static {
//windows 环境下
System.loadLibrary(“WeWorkFinanceSdk”)
}
加载
ERROR
Execution failed for task ‘:app-web:Finance.main()’.

Process ‘command ‘D:/tools/jdk8/bin/java.exe’’ finished with non-zero exit value 1

这样试试,可以把 .so .dll 文件自动复制到 web 模块 lib目录

task buildWar(type: CubaWarBuilding) {
    doAfter {
        def libsDir = "${warDir(webProject)}/WEB-INF/lib"
        project.copy {
            from "${rootProject.rootDir}/lib"
            include '*.dll'
            include '*.so'
            into libsDir
        }
    }
}
1赞