3

I try to upload my test package firebase App Distribution by using ./gradlew assembleAlphaDebug appDistributionUploadAlphaDebug code snippet through android studio terminal, 5 days before I updated my java version and then I have started getting this error. I have not come across any solution until now.

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine java version from '15.0.1'.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Samet ÖZTOPRAK
  • 3,112
  • 3
  • 32
  • 33

1 Answers1

0

If you are using Mac, follow these steps:

vi ~/.bash_profile
Add in JAVA_HOME path there
export JAVA_HOME=/opt/bdc/opt/jdk
Save :wq
Execute source ~/.bash-profile

Once done do echo $JAVA_Home and try your next steps.

Henry Twist
  • 5,666
  • 3
  • 19
  • 44