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 can I exclude arm64-v8a #458

Closed
goodboywt opened this issue Jul 15, 2015 · 6 comments
Closed

How can I exclude arm64-v8a #458

goodboywt opened this issue Jul 15, 2015 · 6 comments

Comments

@goodboywt
Copy link

I found the arm64-v8a dir in 0.5.3,but another lib dependent by my app has not the arm64-v8a,so my app will crash on arm64 platform,as you know ,the other lib hasn't "so" file math arm64-v8a so that my app can't find the "so" file on arm64 platform.

How can I exclude arm64-v8a dir in build.gradle

@lizhiqiang-unnoo
Copy link

this may help: http://frescolib.org/docs/multiple-apks.html#_

@goodboywt
Copy link
Author

@lizhiqiang-unnoo this doesn't help,I just want to exclude the arm64-v8a,but this create each platform an apk file

@appdev
Copy link

appdev commented Jul 15, 2015

@goodboywt you can use include 'arm64-v8a' . will just create arm_64 apk

@goodboywt
Copy link
Author

@huclengyue I don't want the arm64 dir

@michalgr
Copy link
Contributor

Try playing with abiFilters. You might find this link useful: http://tools.android.com/tech-docs/new-build-system/tips. abiFilter should allow you to select single architecture to include in your app, abiFilters should let you do the same with multiple archs.

@liuchonghui
Copy link

try

packagingOptions {
exclude 'lib/arm64-v8a/libbitmaps.so'
exclude 'lib/arm64-v8a/libgifimage.so'
exclude 'lib/arm64-v8a/libimagepipeline.so'
exclude 'lib/arm64-v8a/libmemchunk.so'
exclude 'lib/arm64-v8a/libwebp.so'
exclude 'lib/arm64-v8a/libwebpimage.so'
exclude 'lib/x86_64/libbitmaps.so'
exclude 'lib/x86_64/libgifimage.so'
exclude 'lib/x86_64/libimagepipeline.so'
exclude 'lib/x86_64/libmemchunk.so'
exclude 'lib/x86_64/libwebp.so'
exclude 'lib/x86_64/libwebpimage.so'
}

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

5 participants