Closed jblejder closed 2 years ago
THanks for letting me know that you got it work. PRs are very welcome for the fix. I am not sure I would be able to properly catch this exception without being able to reproduce it and without having been provided the full stack trace.
This is a bug in Android Studio. https://github.com/runningcode/gradle-doctor/issues/174#issuecomment-1022302834
I am on M1 macbook pro and I'm freshly setting up Android environment for existing project so I am probably missing some config but the error is not much helpful and does not lead anywhere. So as it's probably my fault it's breaking I do believe it could provide more meaningful message.
So I got fresh Android Studio install from Toolbox. Doctor complain JAVA_HOME is not set Trying to set it to Android internal but no help. Decided to install Azul java 11 and use that everywhere. This crash.
I have
JAVA_HOME
set to/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
In android studio I have it tooBuild and syncing project is ugly crashing with an error:
Part of stack trace that I have
Update I managed to make it working fine. Once I set one java everywhere and restart android studio. What do you think about catching such exception and provide message to suggest verify java everywhere is the same + restart android studio?