How to fix error: A project ID is required for this service but could not be determined

8 views
Skip to first unread message

jose rivera via StackOverflow

unread,
May 11, 2017, 1:08:12 PM5/11/17
to gcd-stac...@googlegroups.com

In my case the next code is working: BigQuery bigquery = BigQueryOptions.newBuilder().setProjectId("XXXXX") .setCredentials( ServiceAccountCredentials.fromStream(new FileInputStream("key.json")) ).build().getService();

I set the projectId in the builder.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/36673248/how-to-fix-error-a-project-id-is-required-for-this-service-but-could-not-be-det/43921678#43921678
Reply all
Reply to author
Forward
0 new messages