How to fix or avoid “Android.mk: error: ”libxyz (native:vendor) can not link against libgui.vendor (native:vndk_private)"?

1,806 views
Skip to first unread message

Vitaly Bortz

unread,
Jun 23, 2021, 1:10:34 AM6/23/21
to Android Building
Hi all,
Is there a modifiable condition[s]/rule[s] which I could change to allow linking between two given libraries types and prevent the "can not link against" error to appear?

Thanks in advance,
Vitaly   

P.S. posted initially a question about this error on stackoverflow, but in 3 days got 0 answers :- ( 

Dan Willemsen

unread,
Jun 23, 2021, 1:27:52 AM6/23/21
to android-...@googlegroups.com
vndk_private libraries are not part of the stable ABI provided to /vendor code, so they're not safe to link against, as it's possible for a VNDK update to be installed without recompiling your vendor code. They still have "<lib>.vendor" versions because they're used in the implementations of other VNDK libraries that are exposed to /vendor code.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/d220b717-30e6-43de-8fe4-c16999f5fad0n%40googlegroups.com.

Vitaly Bortz

unread,
Jun 23, 2021, 6:12:37 PM6/23/21
to android-...@googlegroups.com
Thanks, Dan!

Is there a way to allow unsafe linking?

Reply all
Reply to author
Forward
0 new messages