# IONIC BUILD ANDROID ERROR YOU may not have the required enviroment

**URL:** <https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480>\
**Category:** ionic-v1\
**Created:** [July 1, 2015, 3:45pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480 "2015-07-01T15:45:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cposadaa](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@cposadaa](https://forum.ionicframework.com/u/cposadaa)\
**Post date:** [July 1, 2015, 3:45pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/1 "2015-07-01T15:45:08Z")

</div>

Im triying to build an android projectc with ionic build android, i am using a default aplication using the following command:

**ionic start sideApp sidemenu**

then i add the android platform:

**ionic platform add android** , and i get:

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/0/038cc7a9e5a342f2f774089e67f19f9ee59afb58.png)

then i try to buld it:

**ionic build android** and i get this error:

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/6/6586b42da0496dc432e93123c68070d7d94255cf.png)

i have follow this video: [https://www.youtube.com/watch?v=RNrNIHQ9cWo](https://www.youtube.com/watch?v=RNrNIHQ9cWo) and this is what i have installed in the SDK

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/4/4d5dd2502320d3b02ea34167150b47b525db6fa8.png)

none of the solutions mentioned in the forum helped me

---

<div class="post-metadata">

**Author:** ![cposadaa](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@cposadaa](https://forum.ionicframework.com/u/cposadaa)\
**Post date:** [July 1, 2015, 4:01pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/2 "2015-07-01T16:01:16Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/2X/0/0c2491d25ad40f8de90376c609e0640e1c693fb0.png)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 1, 2015, 6:36pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/3 "2015-07-01T18:36:28Z")

</div>

Hmm, could you try `ionic build android -d` and paste the output?

---

<div class="post-metadata">

**Author:** ![cposadaa](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@cposadaa](https://forum.ionicframework.com/u/cposadaa)\
**Post date:** [July 2, 2015, 12:21am UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/4 "2015-07-02T00:21:47Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/2X/5/5ef38ef301719d9be596fb1a267fd79b823577c9.png)

same error

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 2, 2015, 3:48pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/5 "2015-07-02T15:48:06Z")

</div>

So lets try this, can you try to run these commands and see if you get any output.

`android` - should bring up the android sdk manager  
`java` - should return a list of options from java

---

<div class="post-metadata">

**Author:** ![cposadaa](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@cposadaa](https://forum.ionicframework.com/u/cposadaa)\
**Post date:** [July 2, 2015, 11:23pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/6 "2015-07-02T23:23:07Z")

</div>

I already did all that , I followed the tutorial in this video [https://www.youtube.com/watch?v=RNrNIHQ9cWo](https://www.youtube.com/watch?v=RNrNIHQ9cWo) , and all that is up and running

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 13, 2015, 7:04pm UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/7 "2015-07-13T19:04:07Z")

</div>

Hmm, not sure what the issue could be then.

Does this happen with a default cordova project?  
Another option would be to go through this setup and let it make sure everything is configured correctly

[https://www.visualstudio.com/en-us/features/cordova-vs.aspx](https://www.visualstudio.com/en-us/features/cordova-vs.aspx)

---

<div class="post-metadata">

**Author:** ![cposadaa](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@cposadaa](https://forum.ionicframework.com/u/cposadaa)\
**Post date:** [July 18, 2015, 2:24am UTC](https://forum.ionicframework.com/t/ionic-build-android-error-you-may-not-have-the-required-enviroment/27480/8 "2015-07-18T02:24:03Z")

</div>

the problem is still
