简体   繁体   English

加速器错误| 套接字挂断

[英]Appcelerator ERROR | socket hang up

I'm trying to package my app for android app store via the appcelerator studio but after processing the javascript files the console displays this error 我正在尝试通过appcelerator Studio将我的应用打包为android应用商店,但是在处理javascript文件后,控制台会显示此错误

2017-04-17T22:47:39.618Z | 2017-04-17T22:47:39.618Z | ERROR | 错误| An uncaught exception was thrown! 引发了一个未捕获的异常! socket hang up 2017-04-17T22:47:39.619Z | 套接字挂断2017-04-17T22:47:39.619Z | ERROR | 错误| socket hang up 套接字挂断

I packaged the app to the play store successfully a few weeks ago and the app runs fine in the iOS simulator. 几周前,我已将应用程序成功打包到Play商店中,并且该应用程序在iOS模拟器中运行良好。

Any help is appreciated. 任何帮助表示赞赏。

Thanks 谢谢

Andy 安迪

You may try updating your appc version. 您可以尝试更新您的appc版本。 I was on 5.4.0 and began getting that error at the end of last week. 我使用的是5.4.0,上周末开始出现该错误。 After updating to 6.0.0 my problem was fixed: 更新到6.0.0后,我的问题已解决:

appc use 6.0.0

This is not any SDK error, but this is rather a case where Studio tries to acccess Appcelerator server for some internal calls like validating app with your Dashboard and checking your Appc. 这不是SDK错误,而是Studio尝试使Appcelerator服务器访问某些内部调用的情况,例如使用仪表板验证应用程序并检查Appc。 account organisation data. 帐户组织数据。

Most likely this issue is resolved if you clean your project & build it again with a proper network availability. 如果您清理项目并以适当的网络可用性重新构建,则很可能会解决此问题。

Note that Studio needs network access to run app for the first time, then it saves the access token locally and you can run app further without network access. 请注意,Studio首次需要网络访问权限才能运行应用程序,然后它将访问令牌保存在本地,您可以在没有网络访问权限的情况下进一步运行应用程序。

If this issue still persists, then you can run this command appc login from terminal or command prompt. 如果此问题仍然存在,则可以从终端或命令提示符运行此命令appc登录 This method has always worked for me as SOCKET HANGUP issue is totally a network issue. 这种方法一直对我有效,因为SOCKET HANGUP问题完全是网络问题。

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

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