Establish a reliable baseline before changing the workspace.
1. Version inventory
Record JDK, SDK, Gradle wrapper and relevant project plugin versions. Compatibility is a relationship among versions, not a rule to always install the newest one.
2. Path and workspace
Run commands from the intended project and inspect the selected SDK location. Avoid modifying global shell settings when a project-scoped configuration is sufficient.
3. Read-only first
Inspect installed components and project health before requesting installations or updates. Preserve the original state so a diagnosis does not become an accidental migration.
Worked scenario
Two SDK installations exist on the machine. The CLI and IDE point to different locations, producing inconsistent device and build behavior.
Apply it
Write a diagnostic report with versions, paths, selected project and one reproducible failing command.
Check your understanding
The report allows another engineer to reproduce the environment issue. Explain the decision and show evidence from your implementation or design. If you cannot demonstrate it yet, revisit the relevant section before continuing.