You have to add OpenGAPPS to the project in order to get Google Play Store.
1. Install "git lfs" and "lzip" first
2. Turn on show hidden files and folder. I think it's Ctrl-H in Ubuntu
4. Add the projects to android-x86.xml file in .repo/manifests. You don't need arm, arm64, and x86 if you're compiling for 64bit. If you're compiling for 32bit, keep x86 instead of x86_64
<remote name="opengapps" fetch="
https://github.com/opengapps/" />
<remote name="opengapps-gitlab" fetch="
https://gitlab.opengapps.org/opengapps/" />
<project path="vendor/opengapps/build" name="aosp_build" revision="master" remote="opengapps" />
<project path="vendor/opengapps/sources/all" name="all" clone-depth="1" revision="master" remote="opengapps-gitlab" />
<project path="vendor/opengapps/sources/x86_64" name="x86_64" clone-depth="1" revision="master" remote="opengapps-gitlab" />
GAPPS_VARIANT := pico
# includes the base of Android-x86 platform
$(call inherit-product,device/generic/common/
x86_64.mk)
$(call inherit-product, vendor/opengapps/build/
opengapps-packages.mk)
# Overrides
PRODUCT_NAME := android_x86_64
PRODUCT_BRAND := Android-x86
PRODUCT_DEVICE := x86_64
PRODUCT_MODEL := Generic Android-x86_64
5a. I recommend using pico and then go back to add packages from Google Play later
6. Run "repo sync" again and you will notice a new folder being added /vendor/opengapps/
7. Inside /vendor/opengapps/sources, go into each of the subfolders and run "sudo git lfs install" and then "sudo git lfs pull". This will pull more files off the internet
8. In /vendor/opengapps/build, add a file named "CleanSpec.mk" then inside add the following:
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/priv-app/*)
9. In /vendor/opengapps/modules, add a file named "Android.mk" the inside add the following:
include $(call all-named-subdir-makefiles,$(GAPPS_PRODUCT_PACKAGES))
10. In /vendor/opengapps/build, open the "
opengapps-package.mk" and remove "GoogleCamera" and "MarkUpGoogle" lines
11. Compile the Android project like normal and the Google Play service and Play Store should be installed as well. The install wizard should be the first thing you see when you boot up for the first time.