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

How to reduce apk size? #63

Closed
fusionraja opened this issue Jan 30, 2016 · 11 comments
Closed

How to reduce apk size? #63

fusionraja opened this issue Jan 30, 2016 · 11 comments

Comments

@fusionraja
Copy link

I using my project for your library. In previous, apk size 8mb. After using your library, apk size 40mb. What i do ? can you provide solution ASAP.
Note: Thanks first of all,. your library is awesome.

@JoseMiralles
Copy link

@fusionraja you need to recompile the binaries including only the libraries that you are going to use. This guide should help you.

@6uru
Copy link

6uru commented Feb 23, 2016

Lets discuss all the APK size and related issues in #66

@6uru 6uru closed this as completed Feb 23, 2016
@thuydx55
Copy link

@fusionraja First, you can remove neon support for armv7 abi (You still need to modify some code). If your app doesn't support x86 abi, you can also remove it. This will help you reduce your apk size at least 20MB

@fusionraja
Copy link
Author

Thanks, I reduced apk size from 40 to 20 MB.
On 24 Feb 2016 10:56 p.m., "Nick Dong" [email protected] wrote:

@fusionraja https://github.com/fusionraja First, you can remove neon
support for armv7 abi (You still need to modify some code). If your app
doesn't support x86 abi, you can also remove it. This will help you
reduce your apk size at least 20MB


Reply to this email directly or view it on GitHub
#63 (comment)
.

@jaydeepbhanderi007
Copy link

i removed x86 and armv7 from assests. now it's forcestoping app. please help me.

@thuydx55
Copy link

@jaydeepbhanderi007 Which device are you use for testing? What remaining in the libs folder?

@Mouadabdelghafouraitali
Copy link

@thuydx55 please how can i know which CPU architectures my app supprted.

@thuydx55
Copy link

@Mouadabdelghafouraitali x86 is nearly dead, you should only care about armv7 😄

@kartikj07
Copy link

How do I remove the x86 architecture from assets? I am unable to find the file related to x86 architecture. Any help will be appreciated. Thanks in advance.

@thuydx55
Copy link

thuydx55 commented Nov 5, 2019

@kartikj07 use this one

@bipinbharti1357
Copy link

bipinbharti1357 commented Dec 7, 2019

android {
...
aaptOptions {
ignoreAssetsPattern "!x86"
}
}

make this line it will help you

Refer link https://github.com/bravobit/FFmpeg-Android/wiki/Reduce-APK-File-Size

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

8 participants