Open
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:
- Run
bubblewrap build
- Select
y
to automatically install JDK - Select
y
to automatically install Android SDK - 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
Metadata
Assignees
Labels
No labels
Activity