Application name is not set. Call Builder#setApplicationName. error

后端 未结 2 638
旧巷少年郎
旧巷少年郎 2021-02-12 15:49

Application: Connecting to BigQuery using BigQuery APIs for Java Environment: Eclipse, Windows 7

My application was running fine until last night. I\'ve made no changes

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 16:26

    Try this to set your application name

    Drive service = new Drive.Builder(httpTransport, jsonFactory, null)
                      .setHttpRequestInitializer(credential)
                      .setApplicationName("Your app name")
                      .build();
    

提交回复
热议问题