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

e-mission-phone: prereq_android_sdk_install.sh installs x86 system images on arm64 #1090

Open
catarial opened this issue Sep 11, 2024 · 1 comment

Comments

@catarial
Copy link
Contributor

Default OSX on arm64 fails to emulate x86. We should add a check for the host architecture to install the correct system images.

@catarial
Copy link
Contributor Author

relevant output:

(base) anolan anolan-40338s ~
> sdkmanager --list_installed
[=======================================] 100% Fetch remote repository...       
Installed packages:
  Path                                                     | Version | Description                                | Location                                                
  -------                                                  | ------- | -------                                    | -------                                                 
  build-tools;34.0.0                                       | 34.0.0  | Android SDK Build-Tools 34                 | build-tools/34.0.0                                      
  emulator                                                 | 35.1.20 | Android Emulator                           | emulator                                                
  extras;google;google_play_services                       | 49      | Google Play services                       | extras/google/google_play_services                      
  platform-tools                                           | 35.0.2  | Android SDK Platform-Tools                 | platform-tools                                          
  platforms;android-34                                     | 3       | Android SDK Platform 34                    | platforms/android-34                                    
  system-images;android-24;google_apis_playstore;x86       | 19      | Google Play Intel x86 Atom System Image    | system-images/android-24/google_apis_playstore/x86      
  system-images;android-25;google_apis_playstore;x86       | 9       | Google Play Intel x86 Atom System Image    | system-images/android-25/google_apis_playstore/x86      
  system-images;android-26;google_apis_playstore;x86       | 7       | Google Play Intel x86 Atom System Image    | system-images/android-26/google_apis_playstore/x86      
  system-images;android-27;google_apis_playstore;x86       | 3       | Google Play Intel x86 Atom System Image    | system-images/android-27/google_apis_playstore/x86      
  system-images;android-28;google_apis_playstore;x86_64    | 8       | Google Play Intel x86_64 Atom System Image | system-images/android-28/google_apis_playstore/x86_64   
  system-images;android-29;google_apis_playstore;x86_64    | 8       | Google Play Intel x86_64 Atom System Image | system-images/android-29/google_apis_playstore/x86_64   
  system-images;android-30;google_apis_playstore;x86_64    | 10      | Google Play Intel x86_64 Atom System Image | system-images/android-30/google_apis_playstore/x86_64   
  system-images;android-31;google_apis_playstore;x86_64    | 9       | Google Play Intel x86_64 Atom System Image | system-images/android-31/google_apis_playstore/x86_64   
  system-images;android-32;google_apis_playstore;x86_64    | 4       | Google Play Intel x86_64 Atom System Image | system-images/android-32/google_apis_playstore/x86_64   
  system-images;android-33;google_apis_playstore;x86_64    | 7       | Google Play Intel x86_64 Atom System Image | system-images/android-33/google_apis_playstore/x86_64   
  system-images;android-34;google_apis_playstore;arm64-v8a | 14      | Google Play ARM 64 v8a System Image        | system-images/android-34/google_apis_playstore/arm64-v8a
  system-images;android-34;google_apis_playstore;x86_64    | 14      | Google Play Intel x86_64 Atom System Image | system-images/android-34/google_apis_playstore/x86_64   

(base) anolan anolan-40338s ~
> avdmanager create avd -k 'system-images;android-34;google_apis_playstore;x86_64' -n x86_64-test
[=======================================] 100% Fetch remote repository...       
Auto-selecting single ABI x86_64
Do you wish to create a custom hardware profile? [no] 
(base) anolan anolan-40338s ~
> /opt/homebrew/share/android-commandlinetools/emulator/emulator -avd x86_64-test
INFO    | Storing crashdata in: /tmp/android-anolan/emu-crash-35.1.20.db, detection is enabled for process: 85864
INFO    | Android emulator version 35.1.20.0 (build_id 12234392) (CL:N/A)
INFO    | Graphics backend: gfxstream
INFO    | Found systemPath /opt/homebrew/share/android-commandlinetools/system-images/android-34/google_apis_playstore/x86_64/
PANIC: Avd's CPU Architecture 'x86_64' is not supported by the QEMU2 emulator on aarch64 host.
(base) anolan anolan-40338s ~
> 

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