SQLCipher和CWAC-SafeRoom使我的APK大小加倍 [英] SQLCipher and CWAC-SafeRoom doubling the size of my APK

查看:253
本文介绍了SQLCipher和CWAC-SafeRoom使我的APK大小加倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些库的大小确实增加了APK的大小.它几乎是我的应用大小的 50%,它的大小为 16.3 MB ,当我分析APK时,仅sqlcipher-lib占我的 48.9% apk大小,即 7.3MBs!

The size of these libraries really increase the APK size. It’s almost 50% my App size, taking it to 16.3 MBs and when I analyze the APK, sqlcipher-lib alone is 48.9% of my apk size i.e 7.3MBs!!!

有什么解决方法吗?

修改: 由于这是与数据库相关的问题,因此我相信如果其他开发人员在搜索过程中仍对指定的标签进行了引用以保持特异性,那是很好的. 我认为下面的答案可以更好地解决该问题,以使对话始终围绕特定主题

Since this is a DB related issue and I believe it's good if the specified tags remain referenced for specificity during search by other developers. I think the answer below addresses it better in order to keep the conversation along specific topics

推荐答案

SafeRoom 可以更好地说明解决方案.正是这样; 解决问题,以支持不同的体系结构.因此,我必须继续遵循这一保护者规则;

This section of the thread that has seen the realization of SafeRoom better explains the solution. Which is precisely; Stay with the problem in order to support different architectures. So I had to continue with this proguard rule;

-keep class net.sqlcipher.** {
    *;
}

保留较大的类.

这篇关于SQLCipher和CWAC-SafeRoom使我的APK大小加倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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