Error: ionic build android


#1

Hey all,

I am pretty new to everything, so this is a noob question. I ran into an Error when I was trying to Test It Out: https://ionicframework.com/docs/guide/installation.html:

Error: Failed to find ‘JAVA_HOME’ environment variable. Try setting setting it manually.

Could someone help? How would I set this up manually?


#2

First install Android SDK. In those steps, you will find to set environment variables.


#3

Thank you! I installed Android SDK, and couldn’t find where to setup environmental variables on my Mac. Any thoughts?


#4

I thought you were in Windows. First install Java Development Kit

Then


#5

Thank you so much for your help. It’s now working!