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

avdmanager not finding system image #8

Open
dotChris90 opened this issue May 3, 2024 · 2 comments
Open

avdmanager not finding system image #8

dotChris90 opened this issue May 3, 2024 · 2 comments

Comments

@dotChris90
Copy link

i saw that the androidsdk snap also brings cmdline tools
but a command like /snap/androidsdk/current/cmdline-tools/bin/avdmanager create avd --name android33 -k "system-images;android-33;google_apis;x86_64"
brings just

Error: Package path is not valid. Valid system image paths are:None

Is this expected?

@EndrII
Copy link
Member

EndrII commented May 3, 2024

HI @dotChris90, I still not added the support of other tools from android command-line tools, The android sdk manager provide fast access to and sdkmanager tool only.

Probably at current time (until i or somebody added full support of all command line tools) better will be setup environment of avdmanager manually. It is not too hard).

For example:

install latest sdktools into your android folder

androidsdk --install "cmdline-tools;latest"
androidsdk --install "emulator"
androidsdk --install "platform-tools"

install needed platform images

androidsdk --install  "system-images;android-33;google_apis;x86_64"

Setup the environment of new command line tools.

export ANDROID_SDK_ROOT=~/AndroidSDK
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools

run your command

avdmanager create avd --name android33 -k "system-images;android-33;google_apis;x86_64"

That all, it should be works fine.

P.S.

do not forget to install OpenJDK before using cmdline-tools in main system.

@EndrII
Copy link
Member

EndrII commented May 3, 2024

i created separately issue #9

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

2 participants