简体   繁体   English

如何迫使Cordova模拟发行版APK,而不是调试APK?

[英]How to force Cordova to emulate release apk, rather than debug apk?

cordova run --emulator

launches the debug apk, rather than the release apk. 启动调试apk,而不是发布apk。

A. I wonder why? 答:我想知道为什么吗? B. How can I solve this? B.我该如何解决?

I tried to relocate the debug folder in another directory, in the hopes that this will cause the emulator to default to the release apk (which was the only one left in the apk directory) -- it didn't. 我试图将debug文件夹重新放置在另一个目录中,希望这会导致仿真器默认使用发行版apk(这是apk目录中唯一剩下的版本),但事实并非如此。 The debug apk got launched from its original location as if the folder has not been moved. 调试apk从其原始位置启动,就好像文件夹尚未移动一样。 I'm curious about this too. 我对此也很好奇。

I went over the documentation and the various Q&A here and elsewhere, but I couldn't find a solution or explanation. 我在这里和其他地方查看了文档以及各种问答,但是找不到解决方案或解释。

cordova run --emulator --release 

(如第一条评论中所述)解决了该问题。

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

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