当我添加我的离子项目cordova geolocation插件,使用此命令:
离子cordova插件添加cordova-plugin-geolocation - 变量GEOLOCATION_USAGE_DESCRIPTION =“找到你”
我收到了这个错误:
建筑失败
使用--stacktrace选项运行以获取堆栈跟踪 . 使用--info或--debug选项运行以获取更多日志输出 .
总时间:1.296秒
无法安装'cordova-plugin-geolocation':错误:cmd:命令失败,退出代码1在ChildProcess.whenDone(D:\ Usuarios ..... \ platforms \ android \ cordova \ node_modules \ cordova-common \ src \ superspawn.js:169:23)
在emitTwo(events.js:106:13)
在ChildProcess.emit(events.js:191:7)
在maybeClose(internal / child_process.js:885:16)
在Process.ChildProcess._handle.onexit(internal / child_process.js:226:5)
错误:cmd:命令失败,退出代码为1 [ERROR]运行cordova插件时发生错误添加cordova-plugin-geolocation --variable“GEOLOCATION_USAGE_DESC ...(退出代码1) .
发生了什么??
1 回答
通过删除插件解决
并删除Android平台
所以,再次添加插件
和android
路上有些bug ......