Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Getting error 256 on APK build
Started by bitcoin985 Jun 18 2019 10:26 PM

3 replies to this topic
android corona apk
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bitcoin985

[GLOBAL: userInfoPane.html]
bitcoin985
  • Observer

  • 2 posts
  • Corona SDK

Hi.  I have an application and I want to build it for publishing in play market. I've generated keystore file and in corona I give the path of the keystore. But when I want to build it, I'm getting error like this. 

BUILD FAILED /Applications/CoronaSDK-3326/Corona Simulator.app/Contents/Resources/
build.xml:525: 
The following error occurred while executing this line: 
/Applications/CoronaSDK-3326/Corona Simulator.app/Contents/Resources/build.xml:417: 
Failed to sign the APK. ERROR: Build Failed: Error code: 256

So when I building apk in debug mode (using debug.keystore provided by corona) everything works fine. 

So I think maybe the problem is in my keystore file. I generated it in terminal using this comman (I'm working in mac).

keytool -genkey -v -keystore mykeystore.keystore -alias aliasname -keyalg RSA -validity 999999

So what am I done wrong? How can I fix it? Thank you.



[TOPIC: post.html]
#2

tap32

[GLOBAL: userInfoPane.html]
tap32
  • Contributor

  • 240 posts
  • Corona SDK

Having the same issue. I suspect it's to do with the Java upgrade...



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,072 posts
  • Enterprise

I would highly suggest updating to a much later daily build.

 

Rob



[TOPIC: post.html]
#4

tap32

[GLOBAL: userInfoPane.html]
tap32
  • Contributor

  • 240 posts
  • Corona SDK

Converting the keystore to a newer format fixed this for me. See:

https://forums.coronalabs.com/topic/75680-build-failed-error-code-256/#entry399413




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: android, corona, apk