我试图让我的应用程序离子这个插件的工作:如何将Google Play服务添加到Ionic Android项目?
https://github.com/pmwisdom/cordova-background-geolocation-services
此插件需要谷歌播放安装工作服务。
我已经安装了它通过Android SDK和遵循,以使该库这一步骤纳入我的项目:
https://developer.android.com/tools/projects/projects-cmdline.html#ReferencingLibraryProject
现在,如果我尝试建立Android项目获得:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Cannot evaluate module google-play-services_lib : Configuration with name 'debug' not found.
从一些研究看来,这个问题与项目结构和gradle有关,但我无法弄清楚如何解决它。有谁能够帮助我?
我也可以评估不同的免费背景GPS插件运行到我的离子应用程序。
谢谢
所以我必须创建一个Android模块?我可以附加声明它在清单文件中的库文件吗? –