Running emulator after build displays errors

1,664 views
Skip to first unread message

I

unread,
Apr 2, 2018, 10:53:57 AM4/2/18
to Android Building
I built the latest release: AOSP 8.1.0_r18 and attempted to run it in the emulator on the same machine.

The emulator runs and I get the home screen but it also displays some errors..

jumbo@ubuntu-14:~$ cd android
jumbo@ubuntu-14:~/android$ source build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/google/marlin/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including sdk/bash_completion/adb.bash
jumbo@ubuntu-14:~/android$ lunch aosp_x86_64-eng

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aosp_x86_64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-116-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM5.171019.017
OUT_DIR=/home/jumbo/out/android
AUX_OS_VARIANT_LIST=
============================================
jumbo@ubuntu-14:~/android$ emulator

<GUI POPUP: "Could not automatically detect ADB binary, Some emulator functionality will not work until a custom path to ADB is added in the extended settings page.">

emulator: WARNING: system partition size adjusted to match image file (2562 MB > 200 MB)

warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android Emulator" checkbox
 - Click "OK"


Any ideas? 10x

I

unread,
Apr 5, 2018, 12:13:55 PM4/5/18
to Android Building
So it turns out that AOSP 8.1.0_r18 branch does not fully support a separate output directory. (See: 'export OUT_DIR_COMMON_BASE=<path-to-your-out-directory>' at
https://source.android.com/setup/build/initializing). Specifically, the emulator does not use the set path to detect the adb binary. I also had a similar issue with idegen.sh

The 'workaround' in this case is to run the Emulator, then go to 'Extended controls' (three dots menu item) > 'Settings' > 'General' tab > 'Use detected ADB location' and manually point to  OUT_DIR_COMMON_BASE/android/host/linux-x86/bin/adb.





Reply all
Reply to author
Forward
0 new messages