简体   繁体   中英

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

cordova run --emulator

launches the debug apk, rather than the release apk.

A. I wonder why? B. How can I solve this?

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. The debug apk got launched from its original location as if the folder has not been moved. 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 

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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