简体   繁体   English

无法编译Android应用-Corona中的错误256

[英]Unable to compile Android app - Error 256 in Corona

I am using Corona SDK and I am trying to compile my app for Android. 我正在使用Corona SDK,并且正在尝试为Android编译我的应用程序。 I have been able to compile for iOS. 我已经能够针对iOS进行编译。

When compiling using either a fully signed distribution key or a debug key I am given the following error: 使用完全签名的分发密钥或调试密钥进行编译时,出现以下错误:

Build Failed: Error code: 256

The full error is as follows: 完整错误如下:

Sep 23 01:24:00.635 Building Android app for mgr****@**.com with 2017.3135
Sep 23 01:24:02.541 BUILD SUCCESSFUL
                    Total time: 0 seconds
Sep 23 01:24:02.542 
Sep 23 01:25:24.905 BuildID: 59c5a9a30bb42
Sep 23 01:25:34.119      [exec] Result: 1
Sep 23 01:25:36.428 BUILD FAILED
                    /Applications/Corona/Corona Simulator.app/Contents/Resources/build.xml:479: The following error occurred while executing this line:
                    /Applications/Corona/Corona Simulator.app/Contents/Resources/build.xml:454: jarsigner returned: 1

                    Total time: 6 seconds
Sep 23 01:25:36.539 Android build failed (256) after 95 seconds
Sep 23 01:25:36.816 ERROR: Build Failed: Error code: 256

I have tried Google Play and Amazon targets with the same outcome. 我尝试过Google Play和Amazon目标具有相同的结果。

Any ideas massively appreciated. 任何想法大为赞赏。

I was able to compile the exact same files on a different machine (Windows) without an issue. 我能够在其他计算机(Windows)上编译完全相同的文件,而不会出现问题。 I guess this is down to the Java installation on the other machine. 我想这取决于另一台机器上的Java安装。

Interestingly, Corona required the 32-bit version of Java on Windows, which meant downloading a slightly older SDK/JDK (latest SDK only has 64-bit builds). 有趣的是,Corona需要Windows上的32位Java版本,这意味着下载稍旧的SDK / JDK(最新的SDK仅具有64位版本)。 My Mac has the latest 64-bit build, which Corona does not complain about, but isn't able to build with. 我的Mac具有最新的64位版本,Corona对此没有抱怨,但是不能与其一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM