Skip to content

Build fail in Android 12: error: overriding commands for target #5

@ekt1lud

Description

@ekt1lud

I am trying to use this guide in Android 12, but I encounter an error:

$ . build/envsetup.sh
$ export TARGET=profusion_sdk_addon
$ lunch aosp_x86_64-eng
$ make -j 4 sdk_addon
<snip>
[100% 454/454] writing build rules ...
FAILED: 
build/make/core/tasks/sdk-addon.mk:82: error: overriding commands for target `out/host/linux-x86/obj/SDK_ADDON/profusion_sdk_addon_intermediates/profusion_sdk_addon-eng.<user>-linux-x86-img/', previously defined at build/make/core/tasks/sdk-addon.mk:82
14:59:05 ckati failed with: exit status 1

#### failed to build some targets (02:42 (mm:ss)) ####

I am using AOSP branch android-12.0.0_r28.

Note: Some other minor errors is encountered when using Android 12 that was easier to solve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions