简体   繁体   English

PhoneGap 3 Android部署/安装错误

[英]PhoneGap 3 Android deploy/install error

I've just installed PhoneGap on my Windows 8 machine. 我刚刚在Windows 8机器上安装了PhoneGap。 When I try to deploy my app on an emulated Android, it throws the following: 当我尝试在模拟的Android上部署我的应用时,它会抛出以下内容:

D:\>phonegap install android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
   [error] An error occurred while emulating/deploying the android project.Buildfile: D:\app\platforms\andro
id\build.xml

Any idea what that error means? 知道那个错误意味着什么吗?

I had the same problem. 我有同样的问题。

You need to create a new Environment Variable called "ANDROID_HOME". 您需要创建一个名为“ANDROID_HOME”的新环境变量。

The value for this variable is your sdk location. 此变量的值是您的sdk位置。 In my case, I put: "C:\\Users\\Jesualdo\\Desktop\\sdk\\sdk\\tools". 就我而言,我说:“C:\\ Users \\ Jesualdo \\ Desktop \\ sdk \\ sdk \\ tools”。

And there is an important point: 有一点很重要:

First, you need to execute the emulator. 首先,您需要执行模拟器。 Then you can install your app. 然后你可以安装你的应用程序。

Check this link: 检查此链接:

http://docs.phonegap.com/en/3.0.0rc1/guide_platforms_android_index.md.html#Android%20Platform%20Guide http://docs.phonegap.com/en/3.0.0rc1/guide_platforms_android_index.md.html#Android%20Platform%20Guide

I hope it helps you. 我希望它对你有所帮助。

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

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