[英]Should com.google.appengine:appengine-api-1.0-sdk be used with gradle-appengine-plugin?
[英]Google Cloud Endpoints 2.0 with gradle-appengine-plugin
當嘗試使用gradle appengine插件升級到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插件可以避免此問題,除了(1)不支持Android Studio,(2)並具有糟糕的JDO支持( 升級文檔 )。
有沒有人有將舊版插件與Google Cloud Endpoints 2.0結合使用的解決方案?
發生問題是因為V2的endpoints-framework-gradle-plugin
和gradle-appengine-plugin
都包含名為endpoints
任務。 刪除V2插件無效,因為gradle-appengine-plugin
版本不支持V2 Cloud Endpoints。
最后,我必須按照Android升級文檔中的建議遷移到新的appengine gradle插件。 這需要通過命令行和自定義任務來構建和部署,以處理JDO,但否則可以正常工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.