aruis / cordova-plugin-baidumaplocation

Get device current Location from Baidu Map
https://www.npmjs.com/package/cordova-plugin-baidumaplocation
Apache License 2.0
139 stars 69 forks source link

cordova plugin add 安装插件失败 #56

Closed Sight4 closed 6 years ago

Sight4 commented 6 years ago

你好,在安装插件时显示 UnhandledPromiseRejectionWarning: CordovaError: Variable(s) missing (use: --variable IOS_KEY=value),由于暂时只使用安卓,所以只使用了 --variable ANDROID_KEY=“”,看到项目首页说明可以只提供一个参数,现在是否必须提供两个?

Sight4 commented 6 years ago

补充一下 cordova plugin add cordova-plugin-baidumaplocation --variable ANDROID_KEY="" --variable IOS_KEY="" 会报同样的错误

aruis commented 6 years ago

嗯,之前设计缺陷,你尝试填入两个非空值试试看;)

Sight4 commented 6 years ago

好的,按照你的操作指引,已经OK了,谢谢,只是感觉这样有点怪怪的