Closed James6xie closed 6 years ago
the first error you hit doesn't seem to have anything to do with open gapps.
are you able to build an android-x86 image successfully without open-gapps?
the second error you hit (Google Camera) says there is a missing file. Maybe your build is in a bad state.
Try running make installclean
and building again.
OK,what i'do as below:
/data/androidx86$ cat .repo/local_manifests/opengapps.xml <?xml version="1.0" encoding="UTF-8"?>
/data/androidx86/device/generic/common$ git diff diff --git a/device.mk b/device.mk index 3764464..5288a27 100644 --- a/device.mk +++ b/device.mk @@ -13,6 +13,23 @@
# +GAPPS_VARIANT := pico +PRODUCT_PACKAGES += Chrome \
+GAPPS_EXCLUDED_PACKAGES := FaceLock \
PRODUCT_DIR := $(dir $(lastword $(filter-out device/common/%,$(filter device/%,$(ALL_PRODUCTS)))))
@@ -111,3 +128,6 @@ $(call inherit-product-if-exists,vendor/google/products/ gms.mk)
Finally, run m -j8 iso_img to build open-apps to android-x86 img;
2018-01-15 22:49 GMT+08:00 James Muir notifications@github.com:
the first error you hit doesn't seem to have anything to do with open gapps.
are you able to build an android-x86 image successfully without open-gapps?
the second error you hit (Google Camera) says there is a missing file. Maybe your build is in a bad state.
Try running make installclean and building again.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/opengapps/aosp_build/issues/162#issuecomment-357703307, or mute the thread https://github.com/notifications/unsubscribe-auth/APzj-aimLLCqFYbTr6nKfr91lYEk5v7Yks5tK2VogaJpZM4ReG0j .
Try running make installclean
before building with opengapps.
Also, try just building pico
(i.e. drop the additional packages you added).
I have a very similar error. I am also trying to build android-x86.
I have built android-x86 multiple times without error. I added OpenGapps pico package to have minimal conflicts, yet I still get the following error:
[ 1% 19/1734] AAPT2 link out/target/product/x86_64/obj/APPS/framework-res_intermediates/package-res.apk
warn: ignoring density 'mdpi-v4' for -c option.
warn: ignoring density 'hdpi-v4' for -c option.
ninja: build stopped: subcommand failed.
17:10:07 ninja failed with: exit status 1
By the looks of it, seems like some sort of conflict with something in framework-res (i.e. frameworks/core/res
)
Could you post more output from your build log? Usually ninja emits the string "FAILED" to indicate where the error is.
This is what I've added to/device/generic/common/device.mk
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
GAPPS_VARIANT := pico
I'm not getting much more from ninja, but I just sent it to build again and here is more output, but a different error this time. Ninja doesn't seem to specify exactly where the error is, unfortunately - is there any way for me to force ninja to output more info about what went wrong?
[ 29% 506/1702] target Prebuilt: PrebuiltGmsCoreInstantApps (out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk)
FAILED: out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk
/bin/bash -c "(rm -f out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk ) && (cp out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk ) && (if (zipinfo out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk 'lib/*.so' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then rm -rf out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/uncompressedlibs && mkdir out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/uncompressedlibs; unzip out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk 'lib/*.so' -d out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/uncompressedlibs && zip -d out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk 'lib/*.so' && ( cd out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/uncompressedlibs && find lib -type f | sort | zip -D -X -0 ../package.apk -@ ) && rm -rf out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/uncompressedlibs; fi ) && (if ! out/host/linux-x86/bin/zipalign -c -p 4 out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk >/dev/null ; then mv out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk.unaligned; out/host/linux-x86/bin/zipalign -f -p 4 out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk.unaligned out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk.aligned; mv out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk.aligned out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk; fi )"
cp: missing destination file operand after 'out/target/product/x86_64/obj/APPS/PrebuiltGmsCoreInstantApps_intermediates/package.apk'
Try 'cp --help' for more information.
ninja: build stopped: subcommand failed.
19:48:50 ninja failed with: exit status 1
Thank you for your help!
you need to set GAPPS_VARIANT := pico
before including the makefile.
Put the following lines at the end of your device.mk
file:
GAPPS_VARIANT := pico
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
made build.android x86 face play service stop and play stpre now work/stop. maybe beause of play services I did this First line
#OpenGAPPS
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)I just build androidx86. I face play services stop and playstore not work. Google chrome works.
#OpenGAPPS
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
#OpenGAPPS
GAPPS_VARIANT := pico
PRODUCT_PACKAGES += Chrome \
KeyboardGoogle \
LatinImeGoogle \
GoogleTTS \
WebViewGoogle \
GoogleServicesFramework \
GoogleLoginService \
GAPPS_FORCE_BROWSER_OVERRIDES := true
GAPPS_EXCLUDED_PACKAGES := FaceLock \
AndroidPlatformServices \
PrebuiltGmsCoreInstantApps \
at the end.
#OpenGAPPS
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
Thanks for the suggestion! I had some other build errors occur, so I ran make clean
and modified the device.mk
as suggested. I'll let it run now, my average clean build time is five hours since I'm using a HDD. I'll report back on how it went tomorrow morning (UK).
I will run another test with First line
GAPPS_VARIANT := pico
GAPPS_FORCE_BROWSER_OVERRIDES := true
GAPPS_EXCLUDED_PACKAGES := FaceLock AndroidPlatformServices PrebuiltGmsCoreInstantApps \
at the end.
$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
Hope play service will work. I just built 1 build , but face play service stop issue. That is the only issue i face now. Any sugesstion?
successfully built. All apps are working. Face play services stop issue in the beginning but when/once I connected to wifi this issue is gone. Play stop work now.
Thank you for the help, it has now successfully built having placed GAPPS_VARIANT := pico
before $(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)
@ZeevoX DId you need to exclude some of the apps like
GAPPS_EXCLUDED_PACKAGES := FaceLock AndroidPlatformServices PrebuiltGmsCoreInstantApps \
or you did not do this step.
@ZeevoX : no problem. Glad it worked for you. Thanks for reporting back. :-)
btw, if there is something in the project README.md file that is not clear or not emphasized enough that would have helped your integration go more smoothly, then please let me know and I can make some updates.
@harkaman : in "make", multi-line variable definitions require line-continuation characters. Your assignment to GAPPS_EXCLUDED_PACKAGES
isn't correct. Do this instead:
GAPPS_EXCLUDED_PACKAGES := \
FaceLock \
AndroidPlatformServices \
PrebuiltGmsCoreInstantApps
You can also take a look in the file vendor/opengapps/build/opengapps-packages.mk
to see some other examples of "make" syntax.
@zhongtianxie : were you able to figure out your build issue?
@jamuir
when i copy and paste, it did not show all. What I dd it was
GAPPS_EXCLUDED_PACKAGES := FaceLock \
AndroidPlatformServices \
PrebuiltGmsCoreInstantApps \
It built good, no issue at all for me. maybe I could be wrong, but the most important i could build. It is very good and running smooth like butter.
PrebuiltGmsCoreInstantApps was issue when i was building. when i excluded it , then no more issue.
Thanks a lot for helping!
Hi Guys! I added opengapps to my android-x86 repo ,what i did as below: 1.Add the build system, and the wanted sources to your manifest. 2.GAPPS_VARIANT := stock
but build cann't success,output as below:
i search on google it said https://thealaskalinuxuser.wordpress.com/2017/05/16/yet-again-error-package-com-android-okhttp-does-not-exist/
I add +LOCAL_JAVA_LIBRARIES := $(apache_http_java_libs) okhttp bouncycastle framework but also cann't build success, ouput as below: