# Build Failed Error code 256 with HelloWorld Debug

**URL:** <https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216>\
**Category:** Android 64-bit testing\
**Created:** [October 16, 2019, 1:34am UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216 "2019-10-16T01:34:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaher](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jmaher](https://forums.solar2d.com/u/jmaher)\
**Post date:** [October 16, 2019, 1:34am UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/1 "2019-10-16T01:34:34Z")

</div>

Downloaded Corona 3540, and attempted to build the included HelloWorld for Android for the first time with the new architecture, using Debug Keystore.

```
Oct 15 08:12:20.900 FAILURE: Build failed with an exception. \* What went wrong: Oct 15 08:12:20.900 Execution failed for task ':App:packageRelease'. \> Oct 15 08:12:20.901 A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade \> Oct 15 08:12:20.912 com.android.ide.common.signing.KeytoolException: Failed to read key androiddebugkey from store "/Applications/Corona-3540/Corona Simulator.app/Contents/Resources/debug.keystore": Cannot recover key Oct 15 08:12:20.913 \* 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. \* Get more help at https://help.gradle.org BUILD FAILED in 37s Oct 15 08:12:21.401 Android build failed (256) after 41 seconds Oct 15 08:12:21.762 ERROR: Build Failed: Failed to Build Error code: 256

```

I then tried several custom Keystores (which I have used in the past successfully to deploy to app stores),&nbsp;

and then appeared to build fine, with no errors.

However, when I opened the project associated with one of these custom keys, the error 256 returned.

---

<div class="post-metadata">

**Author:** ![bamazy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/35a633/32.png) [@bamazy](https://forums.solar2d.com/u/bamazy)\
**Post date:** [October 16, 2019, 5:32am UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/2 "2019-10-16T05:32:34Z")

</div>

This kind of errors happen to me often when I build for production and then switch back to build for debug. In that case I restart the Corona simulator and it builds without error.&nbsp;

---

<div class="post-metadata">

**Author:** ![jmaher](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jmaher](https://forums.solar2d.com/u/jmaher)\
**Post date:** [October 16, 2019, 2:47pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/3 "2019-10-16T14:47:10Z")

</div>

Thanks, but unfortunately, restarting does not help. I am still unable to build using the Debug key.

---

<div class="post-metadata">

**Author:** ![bamazy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/35a633/32.png) [@bamazy](https://forums.solar2d.com/u/bamazy)\
**Post date:** [October 16, 2019, 3:54pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/4 "2019-10-16T15:54:26Z")

</div>

Do you see “Debug” option when you try to build? Like the first one on the list on the image? If you choose the debug keystore file from “/Applications/Corona-3540/Corona Simulator.app/Contents/Resources/debug.keystore”, you will have to choose every time you install a newer version. As you can see on the image, I have three Debug keystore options. I can not use the below ones as I have updated the Corona and the paths they link to do not exist anymore. Because of that, I use the first Debug option.&nbsp;

---

<div class="post-metadata">

**Author:** ![bamazy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/35a633/32.png) [@bamazy](https://forums.solar2d.com/u/bamazy)\
**Post date:** [October 16, 2019, 3:59pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/5 "2019-10-16T15:59:16Z")

</div>

By the way, after writing the post, I noticed the differences between your path and the path I have used for debugging. Then I checked Corona’s Distributon page and found the below information. The reason you can not build might be that you don’t use the right debug,keystore file.&nbsp;

> Signing for Debug Build
> 
> For debug builds, Corona includes a&nbsp;debug.keystore&nbsp;for testing your app on devices. To use it, follow these steps:
> 
> 1. 
> 
> Select&nbsp;Debug&nbsp;from the&nbsp;Keystore&nbsp;menu.
> 
> 1. 
> 
> Directly to the right,&nbsp;Browse…&nbsp;to the keystore file in the Corona SDK application folder:
> 
> Windows —&nbsp;C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore
> 
> macOS —&nbsp;/Applications/Corona/Resources/Resource Library/Android/debug.keystore
> 
> 1. 
> 
> Select the file and enter&nbsp;android&nbsp;as the password.
> 
> 1. 
> 
> In the&nbsp;Key Alias&nbsp;menu, select&nbsp;androiddebugkey.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [October 16, 2019, 11:49pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/6 "2019-10-16T23:49:18Z")

</div>

You may need to update your Java JDK (or possibly downgrade it). Most people are having the best results with JDK 1.8, though I think some people are doing okay with 1.13.&nbsp;

You probably want to get the version from Oracle as I’m not sure how well OpenJDK works.

Rob

---

<div class="post-metadata">

**Author:** ![jmaher](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/7feea3/32.png) [@jmaher](https://forums.solar2d.com/u/jmaher)\
**Post date:** [October 17, 2019, 3:14pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/7 "2019-10-17T15:14:35Z")

</div>

Rob,

I was already running 1.8, but I guess it wasn’t the latest version. I updated it to the latest available, and it does seem to have solved the problem.

Thanks!

---

<div class="post-metadata">

**Author:** ![elifares](https://forums.solar2d.com/user_avatar/forums.solar2d.com/elifares/32/4539_2.png) [@elifares](https://forums.solar2d.com/u/elifares)\
**Post date:** [January 7, 2026, 2:31pm UTC](https://forums.solar2d.com/t/build-failed-error-code-256-with-helloworld-debug/150216/8 "2026-01-07T14:31:23Z")

</div>

Do you mean the latest version of 1.8.x or the latest version of Java JDK?
