Android bootstrap fails with Golang panic

Skip to first unread message


Oct 6, 2021, 5:03:44 PM10/6/21
to Android Building
Hi all,
I was eager to try android 12. So I synced android-12.0.0_r2 and tried building with my device tree. But it fails to bootstrap with long lines of Golang panic.
Error Msg:  FAILED: out/soong/.bootstrap/bin/soong_build out/soong/ -
The Blueprint (Android.bp) of the  libshim_sensorndkbridge:

cc_library_shared {
name: "libshim_sensorndkbridge",
srcs: ["ASensorManager.cpp"],
shared_libs: [
whole_static_libs: ["libbase"],
header_libs: ["libbase_headers"],
vendor: true,
include_dirs: [
It will be great if someone can guide me what is the problem

Dan Willemsen

Oct 6, 2021, 8:13:02 PM10/6/21
to, Yi-yo Chiang
It looks like this was an issue in "VSDK"-based trees that are using a vendor snapshot, and was fixed in master (but not in Android 12):

You can either try to cherry-pick that topic, or disable the VSDK.

- Dan

You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages