Visual Studio Apache cordova工具在构建时返回错误命令失败,退出代码为8

时间:2015-07-01 09:08:44

标签: android git visual-studio cordova visual-studio-cordova

我的应用程序正常构建,直到我遇到admob(https://github.com/floatinghotpot/cordova-admob-pro)插件问题我删除并重新安装,不知道该插件的版本已在Git中使用较新版本更新。从那时起,我的应用程序拒绝构建并始终使用\ build.bat命令返回失败,使用设备或模拟器构建时退出代码为8,但总是在涟漪中工作正常,即使我删除插件我仍然会得到相同的错误。如果我创建一个新项目尝试使用设备或模拟器构建一切仍然有效。但是这个特定的项目拒绝构建或创建apk。以下错误是我一直得到的。有谁知道可能导致这个问题的原因。

new_storemobile\NPK.Mobile\bld\Debug\platforms\android\co      rdova\node_modules\q\q.js:126 (TaskId:36)
1>                      throw e; (TaskId:36)
1>                            ^ (TaskId:36)
1>  Error code 1 fonr command: cmd with args: /s,/c,ant,debug,-f,C:Desktop\new_storemobile\NPK.Mobile\bld\Debug\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen (TaskId:36)
 1>  Command finished with error code 8:   C:new_storemobile\NPK.Mobile\bld\Debug\platforms\android\cordova\build.bat --debug,--ant, (TaskId:36)
 1>MDAVSCLI : error : Debug\platforms\android\cordova\build.bat: Command failed with exit code 8
1>Done executing task "MdaVsCli" -- FAILED. (TaskId:36)
1>Done building target "BuildMDA" in project "NPK.Mobile.jsproj" -- FAILED.:  ( TargetId:26)
  1>
1>Project Performance Summary:
 1>    269683 ms  C:\new_storemobile\NPK.Mobile\NPK.Mobile.jsproj   1 calls
 1>              269683 ms  rebuild                                    1 calls
 1>
 1>Target Performance Summary:
 1>        0 ms  BeforeBuild                                1 calls
 1>        0 ms  CleanPublishFolder                         1 calls
1>        0 ms  CleanReferencedProjects                    1 calls
1>        0 ms  CoreBuild                                  1 calls
1>        0 ms  _SplitProjectReferencesByFileExistence     1 calls
1>        0 ms  CompileTypeScript                          2 calls
 1>        0 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
 1>        0 ms  Clean                                      1 calls
 1>        0 ms  AssignProjectConfiguration                 1 calls
 1>        0 ms  TypeScriptClean                            1 calls
 1>        0 ms  TrackJsChanges                             1 calls
 1>        0 ms  _BeforeBeforeRebuild                       1 calls
 1>        0 ms  BuildOnlySettings                          1 calls
 1>        0 ms  CoreClean                                  1 calls
 1>        0 ms  BeforeRebuild                              1 calls
 1>        0 ms  AfterClean                                 1 calls
 1>        0 ms  CleanCordovaDeploy                         1 calls
 1>        0 ms  MDACleanAfterInstall                       1 calls
 1>        0 ms  AfterBuild                                 1 calls
 1>      125 ms  PreComputeCompileTypeScript                1 calls
 1>     2485 ms  BeforeClean                                1 calls
 1>    122466 ms  BuildMDA                                   1 calls
 1>    144607 ms  EnsureNodeJsRequirementsAreAtCorrectVersion   1 calls
 1>    144607 ms  InstallMDATargets                          1 calls
 1>
 1>Task Performance Summary:
 1>        0 ms  Message                                    3 calls
 1>        0 ms  Delete                                     4 calls
  1>        0 ms  CreateItem                                 1 calls
 1>        0 ms  MakeDir                                    1 calls
1>        0 ms  ReadLinesFromFile                          1 calls
 1>        0 ms  WriteLinesToFile                           1 calls
 1>        0 ms  AssignProjectConfiguration                 1 calls
 1>        0 ms  FindUnderPath                              2 calls
 1>        0 ms  RemoveDuplicates                           1 calls
 1>        0 ms  MdaTrackJsChanges                          1 calls
 1>        0 ms  AssignTargetPath                           1 calls
  1>       16 ms  CreateBuildInfoMetadata                    1 calls
  1>      109 ms  VsTsc                                      1 calls
   1>     2485 ms  RemoveDir                                 10 calls
  1>    122451 ms  MdaVsCli                                   1 calls
  1>    144607 ms  CallTarget                                 4 calls
   1>    144607 ms  RunMdaTargetsInstall                       1 calls
   1>
   1>Build FAILED.
  1>
  1>Time Elapsed 00:04:29.68
 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

0 个答案:

没有答案