Skip to content

Wrong JDK architecture installed on Apple Silicon (ARM) Mac #909

Open
@SamLeatherdale

Description

Describe the bug
The automatically installed JDK is the wrong architecture type on Apple Silicon (ARM) Macs, and cannot launch.

To Reproduce
Steps to reproduce the behavior:

  1. Run bubblewrap build
  2. Select y to automatically install JDK
  3. Select y to automatically install Android SDK
  4. Java crashes with the following error: Bad CPU type in executable.

See full logs:

? Do you want Bubblewrap to install the Android SDK (recommended)?
  (Enter "No" to use your own Android SDK installation) Yes
? Do you agree to the Android SDK terms and conditions at https://developer.android.com/studio/terms.html? Yes
Downloading Android SDK to /Users/sam/.bubblewrap/android_sdk
Downloading the Android SDK...
 >> [████████████████████████████████████████] 100% | 84504k of 84504k
Decompressing the Android SDK...
Installing Android Build Tools. Please, read and accept the license agreement.
build Installing Build Tools
/Users/sam/.bubblewrap/android_sdk/tools/bin/sdkmanager: line 172: /Users/sam/.bubblewrap/jdk/jdk-17.0.11+9/Contents/Home//bin/java: Bad CPU type in executable
/Users/sam/.bubblewrap/android_sdk/tools/bin/sdkmanager: line 172: /Users/sam/.bubblewrap/jdk/jdk-17.0.11+9/Contents/Home//bin/java: Undefined error: 0

Expected behavior
An ARM64 compatible JDK is installed.

Desktop (please complete the following information):

  • OS: macOS Sequoia 15.3, running on M1 MacBook Pro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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