$ repo init -u git://git.osdn.net/gitroot/android-x86/manifest -b nougat-x86
<remote name="opengapps"
fetch="https://github.com/opengapps/" />
<project path="vendor/google/build" name="aosp_build"
revision="master" remote="opengapps" />
<project path="vendor/opengapps/sources/all" name="all"
clone-depth="1" revision="master" remote="opengapps" />
<!-- arm64 depends on arm -->
<project path="vendor/opengapps/sources/arm" name="arm"
clone-depth="1" revision="master" remote="opengapps" />
<project path="vendor/opengapps/sources/arm64" name="arm64"
clone-depth="1" revision="master" remote="opengapps" />
<project path="vendor/opengapps/sources/x86" name="x86"
clone-depth="1" revision="master" remote="opengapps" />
<project path="vendor/opengapps/sources/x86_64" name="x86_64"
clone-depth="1" revision="master" remote="opengapps" />
repo sync --no-tags --no-clone-bundle
GAPPS_VARIANT := stock #on top of code
~~~~~~
$(call inherit-product, vendor/google/build/opengapps-packages.mk) # bottom of code
$ . build/envsetup.sh
$ lunch #AND SELECT 11, android_x86_64-userdebug
$ make -C kernel O=$OUT/obj/kernel ARCH=x86 menuconfig # and not touch anything and save and exit
$ cp ./kernel/arch/x86/configs/android-x86_64_defconfig ./out/target/product/x86_64/obj/kernel/.config
$ make -C kernel O=$OUT/obj/kernel ARCH=x86 menuconfig # Customize my kernel from defconfig
$ #Change Some code not related to opengapps
$ make -j8 showcommands iso_img TARGET_PRODUCT=android_x86_64
nothing matches overlay file
ic_cancel_wht_24dp.png, for flavor hdpi-v4
nothing matches overlay file
notification_bg_normal_pressed.9.png, for flavor mdpi-v19
[ 0% 31/27542] target Prebuilt: libfacenet
(out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so)
FAILED: /bin/bash -c "out/host/linux-x86/bin/acp -fp
out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so"
acp: missing destination file
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
/bin/bash -c "out/host/linux-x86/bin/acp -fp
out/target/product/x86_64/obj/SHARED_LIBRARIES/libfacenet_intermediates/LINKED/libfacenet.so"
$ cd all/
$ git branch -r
$ git checkout -t opengapps/master
$ cd ../arm
$ git branch -r
$ git checkout -t opengapps/master
$ cd ../arm64
$ git branch -r
$ git checkout -t opengapps/master
$ cd ../x86
$ git branch -r
$ git checkout -t opengapps/master
$ cd ../x86_64
$ find ./ -name libfacenet.so*
./arm/lib/25/libfacenet.so./arm/lib/24/libfacenet.so./arm64/lib64/25/libfacenet.so./arm64/lib64/24/libfacenet.so
Also, I'm not sure if it matters, but move the gapps build stuff to device.mk, refer to:
https://github.com/BlissRoms-x86/device_generic_common/blob/n7.1-x86/device.mk
Package / app config to top (look at #OpenGAPPS lines 17-33, #OpenGAPPS line 155)
There's also other stuff in that file you could compare with regarding gapps :) good luck! This way it works for me.
PS. Here's how we have opengapps in manifest: https://github.com/BlissRoms-x86/manifest/blob/n7.1-bleeding_edge/default.xml
Repo call lines 47-48
Location 134-137