我正在使用 ionic + cordova 开发混合移动应用程序。我在https://github.com/instantiator/hockeyapp-phonegap添加了这个插件
但在那之后我会遇到这个问题,如果我删除它那么它会起作用
BUILD FAILED
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:283: null returned: 2
Total time: 1 minute 51 seconds
F:\Repo\rtaProject\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,F:\Repo\rtaProject\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
记住 github 页面中给出的命令是
phonegap plugin add https://github.com/instantiator/hockeyapp-phonegap.git
我跑了这个
cordova plugin add https://github.com/instantiator/hockeyapp-phonegap.git