久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Gradle 排除 arm64 庫

Gradle exclude arm64 libs(Gradle 排除 arm64 庫)
本文介紹了Gradle 排除 arm64 庫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個包含兩個庫的應用程序,它們都依賴于本機庫.兩者都使用 gradle 包含,因此結構如下所示:

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:

我的應用

- Libary1
-- x86, armeabi native libs
- Library2
-- Library3
--- x86, armeabi, arm64-v8a

我想刪除 arm64 支持,因為我還需要 *.so 用于 Library1,而我沒有.(所以目前我在 arm64 設備上遇到 UnsatisfiedLinkError)

I want to remove the arm64 support as i would also need that *.so for Library1, which i don't have. (so currently i get an UnsatisfiedLinkError on arm64 devices)

我已經嘗試過了:(使用 abiFilters "armeabi", "x86")https://stackoverflow.com/a/30799825/3325222

I already tried this: (with abiFilters "armeabi", "x86") https://stackoverflow.com/a/30799825/3325222

但我仍然在我的 apk 中獲得 arm64 文件夾和 *.so 文件...我缺少什么嗎?如果原生庫在依賴層次結構中更深,那 abiFilter 的東西甚至應該可以工作,對吧?

But i still get the arm64 folder and *.so files in my apk... is there something i'm missing? That abiFilter stuff should even work if the native libs are deeper inside the dependency hierarchy right?

提前感謝您的支持:)

推薦答案

我找到了一個解決方案,方法是排除剛剛添加到我不想支持的架構中的特定 *.so 文件:

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'
}

這篇關于Gradle 排除 arm64 庫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 伦一理一级一a一片 | 精品一区在线 | 国产无精乱码一区二区三区 | 91视频专区 | 久久综合国产 | 精品国产乱码久久久久久蜜臀网站 | 国产精品美女久久久 | 天天有av | 少妇搡bbbb搡bbb搡毛茸茸 | 成人做受黄大片 | 亚洲激情视频在线观看 | 黄色小视频免费看 | 精品一区二区三区四区五区 | 欧美日批视频 | 双性呜呜宫交受不住了h | 亚洲精品乱码 | 黑人操亚洲女人 | 伊人av在线 | 国产va在线观看 | 亚洲香蕉在线 | 五月婷婷六月丁香 | 在线成人小视频 | 久久久精品国产sm调教 | 男人午夜影院 | 国产区视频在线观看 | 成人一区二区三区 | 99热免费 | 又色又爽又黄gif动态图 | 国产h视频| av不卡一区 | 男女av在线 | av在线播放观看 | 麻豆视频一区 | 久久久久国产视频 | 亚洲欧美精品在线 | 91动漫在线观看 | 免费黄色一级片 | 日日操天天操 | 日韩精品无 | 深夜福利网站 | 视频爱爱免费视频爱爱太爽 |