question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--fat_apk_cpu` doesn't pack multi-arch libraries from aar_import targets

See original GitHub issue

If an aar contains .so files for multiple architectures (e.g. foo and bar), and an android_binary depends on this aar, --fat_apk_cpu=foo,bar doesn’t pack both so files into the final APK correctly.

The current behavior only packs the .so for one target configuration into the APK.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jincommented, May 30, 2019

The fix will be in 0.27.

2reactions
jincommented, May 29, 2019

WIP fix: https://github.com/bazelbuild/bazel/pull/8510

Using https://github.com/jin/repro/tree/master/8283 as repro:

$ bazel-dev build --fat_apk_cpu=armeabi-v7a,x86 :app && zipinfo bazel-bin/app.apk
INFO: Analyzed target //:app (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:app up-to-date:
  bazel-bin/app_deploy.jar
  bazel-bin/app_unsigned.apk
  bazel-bin/app.apk
INFO: Elapsed time: 0.222s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
Archive:  bazel-bin/app.apk
Zip file size: 475815 bytes, number of entries: 10
-rw----     2.0 fat        9 b- stor 10-Jan-01 00:00 nativedeps
-rw----     2.0 fat    21792 b- defN 10-Jan-01 00:00 lib/armeabi-v7a/libapp.so
-rw----     2.0 fat     6424 b- defN 10-Jan-01 00:00 lib/x86/libapp.so
-rw----     2.0 fat      920 bl defN 10-Jan-01 00:00 classes.dex
-rw-rw-rw-  2.3 unx     1168 b- defX 10-Jan-01 00:00 AndroidManifest.xml
?rw-------  2.0 unx   184888 b- stor 10-Jan-01 00:00 lib/armeabi-v7a/libenvoy_aar_jni.so
?rw-------  2.0 unx   268104 b- stor 10-Jan-01 00:00 lib/x86/libenvoy_aar_jni.so
-rw----     2.0 fat      648 b- defN 10-Jan-01 00:00 META-INF/CERT.SF
-rw----     2.0 fat     1203 b- defN 10-Jan-01 00:00 META-INF/CERT.RSA
-rw----     2.0 fat      563 b- defN 10-Jan-01 00:00 META-INF/MANIFEST.MF
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found