Skip to content

Platform not found #375

@hoda0013

Description

@hoda0013

I am trying to use this on a macOs 14, self hosted runner.

During the emulator startup sequence I was seeing this log

> WARNING | platforms subdirectory is missing under /Users/ssbuild/.android/sdk, please install it

Install Android SDK
/bin/sh -c \yes | sdkmanager --licenses > /dev/null
Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;34.0.0' platform-tools > /dev/null
Installing latest emulator.
/bin/sh -c \sdkmanager --install emulator --channel=3 > /dev/null
Installing system images.
/bin/sh -c \sdkmanager --install 'system-images;android-29;default;arm64-v8a' --channel=3 > /dev/null
Launch Emulator
Creating AVD.
/bin/sh -c \echo no | avdmanager create avd --force -n macOS-avd-arm64-v8a-29 --abi 'default/arm64-v8a' --package 'system-images;android-29;default;arm64-v8a' --device 'pixel_5'
Loading local repository...
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[=======================================] 100% Fetch remote repository...
/bin/sh -c \printf 'hw.cpu.ncore=2
' >> /Users/ssbuild/.android/avd/macOS-avd-arm64-v8a-29.avd/config.ini
Starting emulator.
/bin/sh -c /Users/ssbuild/.android/sdk/emulator/emulator -avd macOS-avd-arm64-v8a-29 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none &
WARNING | platforms subdirectory is missing under /Users/ssbuild/.android/sdk, please install it
WARNING | platforms subdirectory is missing under /Users/ssbuild/.android/sdk, please install it
WARNING | platforms subdirectory is missing under /Users/ssbuild/.android/sdk, please install it
WARNING | platforms subdirectory is missing under /Users/ssbuild/.android, please install it
WARNING | platforms subdirectory is missing under /Users/ssbuild, please install it

There's a comment before /bin/sh -c \sdkmanager --install 'build-tools;34.0.0' platform-tools > /dev/null command that says Installing latest build tools, platform tools, and platform. but the command only installs build-tools and platform-tools.

I ran the command sdkmanager --install "platforms;android-34 and that installed the platform and the "platforms subdirectory is missing under" message went away.

Should the sdkmanager command also be installing a platform instead of just the build-tools and platform-tools?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions