wordpress   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了使用Windows CLI将phonegap应用程序安装到android模拟器大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我正在尝试将我的Phonegap应用程序安装到 Android AVD / Emulator上.我已经推出了AVD,并注册为5554:Nexus_S. 在Windows提示符下使用Phonegap命令时,我输入: phonegap build android phonegap install android 我得到的输出说它成功地将该应用程序安装到设备上,但它不会显示.这是安装命令的输出: [ph
我正在尝试将我的Phonegap应用程序安装到 Android AVD / Emulator上.我已经推出了AVD,并注册为5554:Nexus_S.

在Windows提示符下使用Phonegap命令时,我输入:

phonegap build android
phonegap install android

我得到的输出说它成功地将该应用程序安装到设备上,但它不会显示.这是安装命令的输出

[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
cp: dest file already exists: C:\Users\username\app\platforms\android\assets\www\phonegap.js
[phonegap] successfully installed onto device

我尝试使用不运气的选项来定位设备的变体:

--device=5554
--target=5554

有任何想法吗?

我想到了.您必须在调用中指定–emulator =,因此命令如下所示:
phonegap install --emulator=emulator-5554 android

您可以通过在项目中的/ platforms / android / cordova / lib /文件夹下运行list-started-emulators.bat找到正在运行的模拟器的名称/ ID.

大佬总结

以上是大佬教程为你收集整理的使用Windows CLI将phonegap应用程序安装到android模拟器全部内容,希望文章能够帮你解决使用Windows CLI将phonegap应用程序安装到android模拟器所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: