Try libnativehelper_compat_libc++ instead.
On Wed, 21 Apr 2021 at 22:12, 'Arach MOHAMMED BRAHIM' via Android Building <
[email protected]> wrote:
> I'm trying to compile a JNI in the Android product partition. For that
> purpose I added the property product_specific: true in the Android.bp such
> as:
> cc_library_shared { name : "..." ... shared_libs: [ "libandroidicu",
> "libnativehelper", "libcutils", "libutils", "liblog", ], proprietary :
> false; product_specific: true
>
> Unfortunately, at compilation I have the following error :
>
> Android.bp:1:1: dependency "libnativehelper" of "libTest_jni" missing
> variant:
> os:android, image:product.30, arch:arm64_armv8-a, sdk:, link:shared,
> version:1
>
> available variants:
> os:android, image:, arch:arm64_armv8-a, sdk:, link:shared, version:
> os:android, image:, arch:arm64_armv8-a, sdk:, link:shared, version:1
> os:android, image:, arch:arm64_armv8-a, sdk:, link:static, version:
> os:android, image:, arch:arm64_armv8-a, sdk:, link:static, version:1
> os:android, image:, arch:arm_armv8-a, sdk:, link:shared, version:
> os:android, image:, arch:arm_armv8-a, sdk:, link:shared, version:1
> os:android, image:, arch:arm_armv8-a, sdk:, link:static, version:
> os:android, image:, arch:arm_armv8-a, sdk:, link:static, version:1
>
> How can I add a product variant to libnativehelper?
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/abc6c16d-ba46-474e-b51c-d1da3342551dn%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/abc6c16d-ba46-474e-b51c-d1da3342551dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-building/CAAttue0kZr_5LEBN%2B5YYsXuQu8Dy28r%3DEjNYMx3QxSAPynjSsA%40mail.gmail.com.