Reputation: 483
I am trying to build the webkittestcases.apk for CTS execution but while building the apk i am getting follwing error
out/build-aosp_arm-cts_tests_tests_webkit_Android.mk.ninja is missing, regenerating...
PRODUCT_COPY_FILES device/.../..:root/stab ignored.
PRODUCT_COPY_FILES device/..../.early:root/stab.early ignored.
device/qcom/...../vendor_bootjars.mk:7: error: cannot assign to readonly variable: PRODUCT_BOOT_JARS
ckati failed with: exit status 1
My AOSP android version is 8.1
Upvotes: 1
Views: 1427
Reputation: 2046
The problem is that you try to assign something to PRODUCT_BOOT_JARS
at a late stage of the make process. PRODUCT_BOOT_JARS
becomes readonly
after build/make/core/product.mk is included.
You need to move assignments to PRODUCT_BOOT_JARS
(or the include of vendor_bootjars.mk
) to your device/qcom/.../<product>.mk
or device/qcom/.../AndroidProducts.mk
.
See https://source.android.com/setup/develop/new-device#makefiles
Upvotes: 2