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

查看:97
本文介绍了Android Studio:缺少工具条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用终端命令 gradle clean assembleRelease :

由于缺少ABI'ARMEABI'的删除工具而无法删除库'lib.so'.打包原样.

请帮助我解决此警告的方法.

Please help me on how to get this warning resolved.

注意:我知道这不会影响我的应用程序的行为,但是我的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:缺少工具条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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