Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform not found #375

Open
hoda0013 opened this issue Jan 30, 2024 · 0 comments
Open

Platform not found #375

hoda0013 opened this issue Jan 30, 2024 · 0 comments

Comments

@hoda0013
Copy link

hoda0013 commented Jan 30, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant