# Error when building an apk in ionic

**URL:** <https://forum.ionicframework.com/t/error-when-building-an-apk-in-ionic/144003>\
**Category:** ionic-v3\
**Created:** [October 8, 2018, 6:11pm UTC](https://forum.ionicframework.com/t/error-when-building-an-apk-in-ionic/144003 "2018-10-08T18:11:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xteve](https://avatars.discourse-cdn.com/v4/letter/x/9d8465/32.png) [@Xteve](https://forum.ionicframework.com/u/Xteve)\
**Post date:** [October 8, 2018, 6:11pm UTC](https://forum.ionicframework.com/t/error-when-building-an-apk-in-ionic/144003/1 "2018-10-08T18:11:53Z")

</div>

Hi.  
After some time not using Ionic. Today I have decided to create an apk but the following error ocurred to me. I have installed jdk and the first step goes right, but the second shows me an error. Here the error. Thank in advance for your help.

Steps:

1. ionic cordova run android --prod --release
2. ionic cordova build android --prod --release  
 ![error](https://global.discourse-cdn.com/ionicframework/original/3X/9/b/9b93ea994a4b40e0522a14b1dc92744988355442.jpeg)

---

<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 19, 2021, 9:13pm UTC](https://forum.ionicframework.com/t/error-when-building-an-apk-in-ionic/144003/2 "2021-07-19T21:13:39Z")

</div>

Closed on July 19, 2021, 9:13pm UTC


