【发布时间】:2016-02-21 07:53:18
【问题描述】:
我正在为Apache Cordova 使用Visual Studio Tools 构建Phonegap app。
我正在尝试获取一个本机对话框以将用户带到/启用位置服务,同样我正在使用来自HERE 的Request Location Accuracy Plugin。
但是,当我从 GIT 添加该插件时,我收到以下构建错误,我无法构建项目。
1> FAILURE: Build failed with an exception.
1>
1> * What went wrong:
1> A problem occurred configuring root project 'android'.
1> > Could not resolve all dependencies for configuration ':_debugCompile'.
1> > Could not find any version that matches com.google.android.gms:play-services-location:+.
1> Searched in the following locations:
1> https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/maven-metadata.xml
1> https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/
1> Required by:
1> :android:unspecified
1>
config.xml 显示安装的插件如下声明存在于config.xml。
<plugin name="cordova-plugin-request-location-accuracy" version="1.0.1" />
任何帮助将不胜感激。
PS - 我已经在SDK Manager 中启用了Google Play 服务。
【问题讨论】:
标签: android cordova cordova-plugins visual-studio-cordova taco