简体   繁体   English

Cordova运行android正在永久地在设备上安装应用程序

[英]Cordova run android is taking forever to install app on device

Ok, I have created and run various Cordova apps in the past, but since the last 2 weeks I have more and more issues with getting any app to install on my device. 好吧,我过去创建并运行过各种Cordova应用程序,但自从过去两周以来,我在设备上安装任何应用程序时遇到了越来越多的问题。 I have an LGE975 (LG Optimus G) phone, and there are already 5 Cordova apps installed on it. 我有一个LGE975(LG Optimus G)手机,已经安装了5个Cordova应用程序。

Sometimes if I just try it 20 times it will work. 有时,如果我只尝试20次,它将起作用。 Today however I have tried to run apps I don't know how many times, but they just won't install, and no error is thrown. 然而今天我试图运行我不知道多少次的应用程序,但它们只是不会安装,并且不会抛出任何错误。

What I've tried so far: 到目前为止我尝试过的:

  • Reinstalling Cordova 重新安装Cordova
  • Upgrading cordova from 3.1.0-0.1.0 to -0.2.0 将cordova从3.1.0-0.1.0升级到-0.2.0
  • Downgrading back to -0.1.0 降级回-0.1.0
  • Rebooting device 重启设备
  • Rebooting pc 重新启动电脑

Running app on platform "android" via command "cmd" /c C:\\CordovaProjects\\HelloW orld\\platforms\\android\\cordova\\run --device Buildfile: C:\\CordovaProjects\\HelloWorld\\platforms\\android\\build.xml

What is it doing during the installation on device? 在设备上安装时它在做什么? The verbose output of Cordova isn't showing much of where it could go wrong. Cordova的详细输出并未显示出可能出错的地方。 Also no error is thrown. 也没有抛出错误。

Is there anything I can do to fix this? 有什么办法可以解决这个问题吗?

I had the same problem, but it worked when I launched the process from an Administrator command prompt. 我有同样的问题,但是当我从管理员命令提示符启动进程时,它有效。

(On windows 7, Start -> Search Programs and Files -> type "cmd" -> Right-click on CMD -> Run as Administrator -> run phonegap command) (在Windows 7上,开始 - >搜索程序和文件 - >键入“cmd” - >右键单击CMD - >以管理员身份运行 - >运行phonegap命令)

As suggested in the comment aboive i just runned: 正如评论中所述,我刚刚运行:

platforms\android\cordova\run --device

and it worked! 它工作了!

It must be a bug or something. 它一定是个bug或者什么的。

This is sort of a 'duh' answer, but maybe its an android version update that was applied to your device (phone) and the OS is now slowing things down? 这是一个'呃'答案,但也许它是一个应用于你的设备(手机)的Android版本更新,操作系统现在正在减慢速度?

Or, maybe your device is really full on storage space, and you should free up some space to speed things up :) 或者,也许你的设备在存储空间上非常满,你应该腾出一些空间来加快速度:)

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

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