[Android Apps and Games] scanno:
sdkmanager --list gives as installed:

Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;27.0.3 | 27.0.3 | Android SDK Build-Tools 27.0.3 | build-tools/27.0.3/
platform-tools | 28.0.0 | Android SDK Platform-Tools | platform-tools/
platforms;android-27 | 3 | Android SDK Platform 27 | platforms/android-27/
tools | 26.1.1 | Android SDK Tools 26.1.1 | tools/

So that looks ok...

In the shell script that kicks off a device build, i have included

export ANDROID_HOME=/home/build/android

and /home/build/android contains:

drwxrwxr-x 7 jenkins users 4096 Jul 25 23:14 ./
drwxrwxr-x 11 jenkins users 4096 Jul 25 22:50 ../
drwxrwxr-x 3 jenkins users 4096 Jul 25 22:57 build-tools/
-rw-r--r-- 1 jenkins jenkins 16 Jul 28 19:57 .knownPackages
drwxrwxr-x 2 jenkins users 4096 Jul 25 22:58 licenses/
drwxr-xr-x 3 jenkins jenkins 4096 Jul 25 23:14 platforms/
drwxr-xr-x 4 jenkins jenkins 4096 Jul 25 23:14 platform-tools/
drwxrwxr-x 6 jenkins users 4096 Jul 25 22:57 tools/

But from my build log:

[ 8% 9475/106676] build packages/apps/FakeStore/fake-store/build/outputs/apk/release/fake-store-release-unsigned.apk
FAILED: packages/apps/FakeStore/fake-store/build/outputs/apk/release/fake-store-release-unsigned.apk
/bin/bash -c "echo \"sdk.dir=/home/build/android\" > packages/apps/FakeStore/local.properties;	cd packages/apps/FakeStore && git submodule update --recursive --init;	cd fake-store && JAVA_TOOL_OPTIONS=\" -Dfile.encoding=UTF8\" ../gradlew assembleRelease"
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Starting a Gradle Daemon (subsequent builds will be faster)
:fake-store:preBuild UP-TO-DATE
:fake-store:preReleaseBuild
:fake-store:compileReleaseAidl
:fake-store:compileReleaseRenderscript
:fake-store:checkReleaseManifest
:fake-store:generateReleaseBuildConfig
:fake-store:prepareLintJar
:fake-store:mainApkListPersistenceRelease
:fake-store:generateReleaseResValues
:fake-store:generateReleaseResources
:fake-store:mergeReleaseResources
:fake-store:createReleaseCompatibleScreenManifests
:fake-store:processReleaseManifest
:fake-store:splitsDiscoveryTaskRelease
:fake-store:processReleaseResources
/home/build/android/platforms/android-27/android.jar: error: I/O error.
:fake-store:processReleaseResources FAILED

FAILURE: Build failed with an exception.

So beats me at the moment. /home/build/android/platforms/android-27 is there, but no android.jar is in that directory. Either i am missing something still...

And yes i am using the buildfix-1806 branch and the reference error is gone. Cant see any further relevant error messages.

Added

PRODUCT_PACKAGES += \
GmsCore \
GsfProxy \
FakeStore

to my device tree

and have this in my local manifest:

<project path="packages/apps/GmsCore" name="chris42/android_packages_apps_GmsCore" remote="github" revision="buildfix-1806" />
<project path="packages/apps/FakeStore" name="chris42/android_packages_apps_FakeStore" remote="github" revision="buildfix-1806" />
<project path="packages/apps/GsfProxy" name="chris42/android_packages_apps_GsfProxy" remote="github" revision="buildfix-1806" />