Gradle exclude arm64 libs

后端 未结 2 1949
长发绾君心
长发绾君心 2020-12-16 01:31

I have an application including two libraries, where both of them have dependencies on native libraries. Both are included using gradle so the structure looks like this:

相关标签:
2条回答
  • 2020-12-16 02:15

    https://stackoverflow.com/a/30799825/3325222 worked for me in a similar situation. However, that solution is actually deprecated.

    There is new SDK support in experimental Gradle 2.5 which supports architecture filters: http://tools.android.com/tech-docs/new-build-system/tips

    0 讨论(0)
  • 2020-12-16 02:22

    I found a solution by excluding the specific *.so files that were just added inside the architectures i didn't want to support:

    packagingOptions {
      exclude 'lib/arm64-v8a/lib.so'
      exclude 'lib/mips/lib.so'
    }
    
    0 讨论(0)
提交回复
热议问题