【发布时间】:2017-08-07 13:22:02
【问题描述】:
在尝试使用 gradle appengine plugin 升级到 Google Cloud Endpoints 2.0 时,我遇到了与配置 endpoints 的冲突。 Gradle 报错:
Error:Cannot add a configuration with name 'endpoints' as a configuration with that name already exists.
切换到较新的appengine gradle plugin 可以避免这个问题,除了它 (1) 不支持 Android Studio,(2) 并且具有糟糕的 JDO 支持 (upgrade doc)。
有没有人可以将旧插件与 Google Cloud Endpoints 2.0 一起使用?
【问题讨论】:
-
你读过这个过渡过程吗? github.com/GoogleCloudPlatform/…
-
一般来说这是可行的。听起来更像是您的 Gradle 配置的问题。您可以发布您的 build.gradle 文件。由于某种原因,较新的插件仍然与 Android Studio 不兼容(不仅仅是不支持,它根本不起作用),不要去那里。
标签: google-app-engine gradle google-cloud-endpoints google-cloud-endpoints-v2 appengine-gradle-plugin