简体   繁体   English

IONIC中的APK错误生成

[英]APK error build in IONIC

I have tried to build apk for android in IONIC however everytime I do the build using command: ionic cordova build android it will always result to BUILD FAILED. 我试图在IONIC中为android构建apk,但是每次我使用以下命令进行构建时: ionic cordova build android总是会导致BUILD FAILED。 The error is so generic it only says DeprecationWarning: Unhandled promise rejections are deprecated. 该错误是如此普遍,它仅显示DeprecationWarning:不推荐使用未处理的Promise拒绝。 Below image is the full response: 下图是完整的响应: 在此处输入图片说明

Thank you in advance for the help. 预先感谢您的帮助。

First, you have to open android studio->Tools->Android->SDK Manager See the screenshot below 首先,您必须打开android studio-> Tools-> Android-> SDK Manager 查看下面的屏幕截图

And Applying at the time, it will ask the license. 并在申请时会询问许可证。 You have to accept and download the API 26. After it will work. 您必须接受并下载API 26。 :) :)

Unhandle Promise rejection comes mainly with Cordova version @8.0.0. Unhandle Promise拒绝主要随Cordova版本@ 8.0.0一起提供。

Could you downgrade the version to 7 to 6 and try to build ? 您可以将版本降级到7到6并尝试构建吗?

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

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