Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个库是不是太大了点 #34

Closed
sundaylol opened this issue Jul 17, 2019 · 2 comments
Closed

这个库是不是太大了点 #34

sundaylol opened this issue Jul 17, 2019 · 2 comments

Comments

@sundaylol
Copy link

这边不混淆之前打包有44M。。。我真的是惊呆了。真的有这么大么

@pqpo
Copy link
Owner

pqpo commented Jul 17, 2019

可以考虑不引入 x86 架构动态库或者只引入 32 位或 64 位其中的一个 x86 架构动态库。
x86 架构包占比 90% 以上:
image
原因是 OpenCV 的 x86 架构动态库比较大,在官方库基础上已经做了大量精简,下面是 OpenCV 官方的安卓动态库大小:
├── arm64-v8a
│   └── [17M] libopencv_java4.so
├── armeabi-v7a
│   └── [9.4M] libopencv_java4.so
├── x86
│   └── [45M] libopencv_java4.so
└── x86_64
└── [66M] libopencv_java4.so

@pqpo pqpo closed this as completed Jul 17, 2019
@sundaylol
Copy link
Author

可以考虑不引入 x86 架构动态库或者只引入 32 位或 64 位其中的一个 x86 架构动态库。
x86 架构包占比 90% 以上:
image
原因是 OpenCV 的 x86 架构动态库比较大,在官方库基础上已经做了大量精简,下面是 OpenCV 官方的安卓动态库大小:
├── arm64-v8a
│   └── [17M] libopencv_java4.so
├── armeabi-v7a
│   └── [9.4M] libopencv_java4.so
├── x86
│   └── [45M] libopencv_java4.so
└── x86_64
└── [66M] libopencv_java4.so

感谢大大,我这边之前已经把X86和X64的去掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants