构建失败(Google I/O Android App 2017)



错误日志:

warning: [options] bootstrap class path not set in conjunction with -source 1.7
/Users/samuelyang/AndroidStudioProjects/iosched-master/server/build/generated-source/endpoints/java/com/google/samples/apps/iosched/rpc/cms/Cms.java:346: 
error: method does not override or implement a method from a supertype
@override
^

如何构建它?

错误发生在一个名为 Cms.java 的文件和 Cms 的代码狙击.java如下所示:

@Override
public Builder setBatchPath(String batchPath) {
  return (Builder) super.setBatchPath(batchPath);
}

每次我评论所有这些错误代码狙击并构建项目时,所有这些代码都将是自动生成的,我不知道如何处理这个问题......谁能帮我?谢谢。。。

下载谷歌I/O 2017安卓应用程序在这里

我在其他项目中遇到了同样的问题。尝试在build.gradle中将google-api-client库从1.22.0更改为1.23.0

compile 'com.google.api-client:google-api-client:1.23.0'     
compile 'com.google.http-client:google-http-client-android:1.23.0'

相关内容

最新更新