[英]Cordova don't deploy to my android emulator
I builded my app with cordova and just try to run it on my emulator but it seems to load forever我用 cordova 构建了我的应用程序,并尝试在我的模拟器上运行它,但它似乎永远加载
i don't understand why the app is not deployed even if my emulator is running我不明白为什么即使我的模拟器正在运行该应用程序也没有部署
This the command that i executed:这是我执行的命令:
npx cordova build android
npx cordova prepare android
npx cordova run android
To run a Cordova build application on an Android emulator you need to use an additional command line switch.要在 Android 仿真器上运行 Cordova 构建应用程序,您需要使用额外的命令行开关。
So change所以改变
npx cordova run android
to至
npx cordova run android --emulator
If this doesn't work, you can try to execute the following command如果这不起作用,您可以尝试执行以下命令
cordova run android --list
to get a list of detected connected devices and ultimately try to target your desired device using:获取检测到的连接设备的列表,并最终尝试使用以下方法定位您想要的设备:
cordova run android --target=one of the available devices
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.