运行纹波仿真器工作正常.但是当我尝试运行 Android模拟器或设备时,我收到此错误:
C:\WorkspaceMobileVisualStudio\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\android\cordova\build.bat: Command Failed with exit code 8 C:\WorkspaceMobileVisualStudio\BlankCordovaApp1\BlankCordovaApp1\MDAVSCLI
输出是:
1>—— Build started: Project: BlankCordovaApp1,Configuration: Debug Android 1> GeneratedJavascript=scripts\index.js;scripts\platformOverrides.js
1> C:\WorkspaceMobileVisualStudio\BlankCordovaApp1\BlankCordovaApp1>call “C:\Program Files (x86)\nodejs\”\nodevars.bat
1> Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.
1> —— Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUdio 12.0\COMMON7\IDE\EXTENSIONS\1LHTZMLE.C0Y\packages\vs-mda
1>MDAVSCLI : error : C:\WorkspaceMobileVisualStudio\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\android\cordova\build.bat: Command Failed with exit code 8
========== Build: 0 succeeded,1 Failed,0 up-to-date,0 skipped ==========
========== Deploy: 0 succeeded,0 Failed,0 skipped ==========
我已经看到问题的答案是检查我已经完成的路径变量JAVA_HOME,ADT_HOME和ANT_HOME,它们都是正确的.另一个常见问题似乎是工作区中的空格,我确实有,但我现在已经创建了一个新的工作区文件夹.
据我所知,我应该能够看到“你好,你的应用程序准备好了!”屏幕.
解决方法
值得注意的是,这仍然不喜欢工作区目录中的数字或空格!