GoogleChromeLabs / GoogleChromeLabs/bubblewrap
JDK installation fails without error
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Clean bubblewrap install via npm. Running any bubblewrap command prompts for the JDK. Replying _Yes_ when asked whether bubblewrap should install the JDK, I see the download bar followed by the _Decompressing_ message. But then the command just exists. Running the same command again results in the same prompt to install the JDK and behavior:
```bash
$ bubblewrap doctor
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
? Do you want Bubblewrap to install the JDK (recommended)?
(Enter "No" to use your own JDK 17 installation) Yes
Downloading JDK 17 to /Users/moritz/.bubblewrap/jdk
Downloading the JDK 17 Sources...
>> [████████████████████████████████████████] 100% | 174793k of 174793k
Decompressing the JDK 17 Sources...
$ bubblewrap doctor
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
? Do you want Bubblewrap to install the JDK (recommended)?
(Enter "No" to use your own JDK 17 installation) (Y/n)
```
The command exits with code 0, so there's no error. It just doesn't work.
The same error also occurs when bubblewrap tries to install the Android SDK.
**To Reproduce**
1. `npm i -g @bubblewrap/cli`
2. `bubblewrap doctor`
3. Answer `Y` when prompted for the JDK
**Expected behavior**
The JDK installation via bubblewrap should finish correctly. After that, the JDK installed by bubblewrap should be detected and used automatically, or when prompted.
**Desktop (please complete the following information):**
- OS: macOS 26.5
Contributor guide
Research direction
Start by reproducing the failure with the bubblewrap doctor entry point after a global npm install, answering Yes to the JDK prompt on macOS. Trace the JDK and Android SDK installation paths and their post-decompression detection, then verify that doctor completes without exiting silently and reuses the installed tools on the next run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, node.js, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100