Android Studio : Missing Strip Tool(Android Studio:缺少剥离工具)
问题描述
我在使用终端命令 gradle clean assembleRelease
构建我的 android studio 代码时不断收到此警告:
I am constantly getting this warning while building my android studio code using terminal command gradle clean assembleRelease
:
由于缺少 ABI 'ARMEABI' 的剥离工具,无法剥离库 'lib.so'.按原样打包.
请帮助我解决此警告.
注意:我知道这不会影响我的应用程序的行为,但是我的 APK 太庞大了,这肯定会帮助我减小 APK 的大小.所以我需要解决这个问题.
Note: I know this won't affect the behaviour of my app, but my APK is too bulky and this will surely help me reduce APK size. So I need this resolved.
推荐答案
默认安装的 NDK 似乎没有剥离已构建支持 ARMEABI 的二进制文件所需的工具,因此最终打包了整个库,这大大增加了构建的文件大小.
The default installed NDK doesn't seem to have the tools required to strip binaries that have been built with ARMEABI support, so it ends up packaging the whole library, which increases the built file size substantially.
我发现从 Android Studio -> 工具 -> SDK 管理器 -> SDK 工具安装NDK(并排)"工具可以解决这个警告,还可以减少构建的 APK 大小,尤其是对于 React Native项目.
I've found that installing the "NDK (Side by side)" tool from Android Studio -> Tools -> SDK Manager -> SDK Tools takes care of this warning and also reduces the built APK size, especially for React Native projects.
这篇关于Android Studio:缺少剥离工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Studio:缺少剥离工具


基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01