简体   繁体   English

Google Cloud端点框架与Android Studio和Gradle 5.1.1不兼容

[英]Google cloud endpoints framework not compatible with Android studio and gradle 5.1.1

I recently updated Android studio to version 3.4 and with it came a gradle update (com.android.tools.build:gradle:3.4.0) and with that came gradle 5.1.1-all.zip. 我最近将Android Studio更新到了3.4版,并进行了gradle更新(com.android.tools.build:gradle:3.4.0),并附带了gradle 5.1.1-all.zip。

When attempting to sync gradle with the project, the result is: 尝试与项目同步gradle时,结果为:

ERROR: Unable to find method 'org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;' 错误:找不到方法'org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava / io / File;'

This traces back to the gradle plugin: 这可以追溯到gradle插件:

'com.google.cloud.tools.endpoints-framework-server' 'com.google.cloud.tools.endpoints-framework-server'

which is required in order to use the google cloud endpoints framework. 这是使用Google Cloud Endpoints框架所必需的。

I was curious if anyone else has experienced this and if they have found a solution or if this is out of my control and a bug report needs to be filed. 我很好奇是否有人遇到过这种情况,是否找到了解决方案,或者这超出了我的控制范围而需要提交错误报告。 Thanks 谢谢

In case anyone comes across this, the solution was to update the endpoint framework gradle plugin to v2.0.1 万一遇到任何人,解决方案是将端点框架gradle插件更新为v2.0.1。

"com.google.cloud.tools:endpoints-framework-gradle-plugin:2.0.1" “ com.google.cloud.tools:endpoints-framework-gradle-plugin:2.0.1”

on both the app and backend gradle files. 在应用程序和后端gradle文件上。

😁 😁

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM