Android Studio:缺少条带工具 [英] Android Studio : Missing Strip Tool

查看:60
本文介绍了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 -> Tools -> SDK Manager -> SDK Tools 安装NDK (Side by side)"工具会处理这个警告并减少构建的 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:缺少条带工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆