In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/spanner/cloud-client/src/main/java/com/example/spanner/SpannerSample.java#L1671
Did you change the file? If so, how?
No
Describe the issue
If the project name is not set, the following error message is logged:
"Invalid project specified. Project in the database id should match the project name set in the environment variable GCLOUD_PROJECT."
However, if I set the variable (export GCLOUD_PROJECT=my-project), nothing happens. There doesn't seem to be any logic reading the env variable. It seems to be reading the core/project setting in from gcloud (for example, gcloud config set core/project my-project), but I am not sure.