【发布时间】:2015-01-12 16:00:51
【问题描述】:
自从 Google 以其无限智慧决定从 Android 4.4 中删除文件上传支持以来,我一直在尝试弄清楚如何将文件选择器添加到我正在编写的应用程序中。
我添加了 cdibened found here 的 FileChooser 插件,但每次尝试构建 Android 版本时,都会出现以下错误:
BUILD FAILED
C:\Users\USER\AppData\Local\Android\sdk\tools\ant\build.xml:720: The following
error occurred while executing this line:
C:\Users\USER\AppData\Local\Android\sdk\tools\ant\build.xml:734: Compile faile
d; see the compiler error output for details.
Total time: 2 seconds
C:\xampp\htdocs\CourseworkApp\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\xampp\htdocs\Cour
seworkApp\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant
-gen
Error: C:\xampp\htdocs\CourseworkApp\platforms\android\cordova\build.bat: Comman
d failed with exit code 8
at ChildProcess.whenDone (C:\Users\USER\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)`
此错误仅在我添加此插件时出现,一旦我删除它,它就可以完美编译。
我想知道是否有人对为什么会发生此错误有任何想法以及有关如何修复它的任何建议?
提前致谢。
【问题讨论】: