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

Gradle 排除 arm64 庫

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

問題描述

我有一個包含兩個庫的應(yīng)用程序,它們都依賴于本機庫.兩者都使用 gradle 包含,因此結(jié)構(gòu)如下所示:

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:

我的應(yīng)用

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

我想刪除 arm64 支持,因為我還需要 *.so 用于 Library1,而我沒有.(所以目前我在 arm64 設(shè)備上遇到 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)

我已經(jīng)嘗試過了:(使用 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 文件...我缺少什么嗎?如果原生庫在依賴層次結(jié)構(gòu)中更深,那 abiFilter 的東西甚至應(yīng)該可以工作,對吧?

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?

提前感謝您的支持:)

推薦答案

我找到了一個解決方案,方法是排除剛剛添加到我不想支持的架構(gòu)中的特定 *.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'
}

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

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

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 色综合网站 | 国产精品日韩欧美一区二区三区 | 精品亚洲一区二区三区四区五区高 | 国产视频中文字幕 | 精品乱人伦一区二区三区 | 久久久国产精品视频 | 久久精品一级 | 亚洲精品成人网 | 欧美成人在线影院 | 超碰国产在线 | 日韩美女在线看免费观看 | 男人天堂网址 | 午夜精品91 | 欧美成人一区二免费视频软件 | 久久久99精品免费观看 | 日韩视频在线一区 | 高清欧美性猛交xxxx黑人猛交 | 欧美日韩在线免费观看 | 午夜小影院 | 精品动漫一区 | 毛片一区| 米奇7777狠狠狠狠视频 | 美女黄网站 | 一区二区中文字幕 | 在线成人免费视频 | 日本在线你懂的 | 亚洲vs天堂| 国产一区在线免费 | 九九av| 天天操夜夜操 | 草草视频在线播放 | 在线观看 亚洲 | 成人影院午夜 | 91福利网| 亚洲免费成人 | 毛片在线看片 | 欧美日韩精品久久久免费观看 | 91精品成人久久 | 男女视频91 | 男女黄网站 | 国产精品亚洲一区二区三区在线 |