I had dockerized my Next.js app, and was trying to deploy it to google cloud, but while pushing the docker image to the registry, I encountered this error.
unknown: Service 'containerregistry.googleapis.com' is not enabled for consumer 'project:next'
I had enabled this API for all the possible projects, but it keeps retrying.
The command I am using was
gcloud builds submit --tag gcr.io/next/helloworld --project next-317511