加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

使用Windows CLI将phonegap应用程序安装到android模拟器

发布时间:2020-12-13 20:17:47 所属栏目:Windows 来源:网络整理
导读:我正在尝试将我的Phonegap应用程序安装到 Android AVD / Emulator上.我已经推出了AVD,并注册为5554:Nexus_S. 在Windows提示符下使用Phonegap命令时,我输入: phonegap build androidphonegap install android 我得到的输出说它成功地将该应用程序安装到设备
我正在尝试将我的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:Usersusernameappplatformsandroidassetswwwphonegap.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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读