2016-03-23 132 views
1

我对Monaca.io工作,并尝试通过从structions cordova plugin google mapsMonaca.io不能建立与添加科尔多瓦谷歌地图插件

建立与谷歌地图插件的Android之后建造它显示错误如下:

FAILURE: Build failed with an exception.

What went wrong:

Execution failed for task ':processReleaseResources'. > Error: more than one library with package name 'com.google.android.gms'

You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0

Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10.305 secs

我该如何解决?

回答

1

从Monaca中,进入配置 - >管理插件。通过上传可以在这里找到的master.zip来移除并重新安装该插件:https://github.com/mapsplugin/cordova-plugin-googlemaps

您链接到的教程以及后面的说明适用于Cordova 3.X. Monaca IDE目前使用5.2.0。正如本教程所述,指南将不再起作用,因为它会产生您描述的错误。

相关问题