Critical Bug: Persistent HTTP 400 "Invalid project resource name projects/" even after Gmail switch

Same issue for a week now. Tried clean install etc without any luck. Filed a bug report already.

i met this too for about whole week :frowning:

1 Like

Same issue here. Tried with latest Antigravity 1.18.3 version. Gemini Code Assist errors when using Agent Mode so that’s a dead end for me as well

1 Like

I am experiencing the same issue. For more than a week, Google Antigravity has been completely unusable.

Trajectory ID: a0c3a57a-a78c-
Error: HTTP 400 Bad Request
Sherlog: 
TraceID: 0x8937
Headers: {"Alt-Svc":["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"],"Content-Length":["382"],"Content-Type":["text/event-stream"],"Date":["Fri, 20 Feb 2026 05:05:01 GMT"],"Server":["ESF"],"Server-Timing":["gfet4t7; dur=186"],"Vary":["Origin","X-Origin","Referer"],"X-Cloudaicompanion-Trace-Id":["8937f8afd59c6aa2"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["SAMEORIGIN"],"X-Xss-Protection":["0"]}

{
  "error": {
    "code": 400,
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "description": "Invalid project resource name",
            "field": "name"
          }
        ]
      }
    ],
    "message": "Invalid project resource name projects/",
    "status": "INVALID_ARGUMENT"
  }
}

On Reddit I found this, which was exactly my situation, it worked for me:

I finally found a solution.
When I have created both google account I used my email address (non gmail).
Now I started using AG and gemini I have created a gmail address and the issue came from there.

I removed the gmail service from my google account and AG works fine again.
It seems the same happens to users who change their gmail address.

Google account is so cooked lol

7 Likes

You Absolute WORKED FOR ME!!… Sorry for shouting

1 Like

I have the same issue

it works. thank you very much

Sorry, what did you go? Signed up for Google AI with a non Gmail account? I wonder what can you do if you have a paid subscription

what should I do after deleting the gmail service from account? Antigravity still has the same error (400)…

2 Likes

Summary from the topic replies, it seems that my issue is changing Gmail address. (Yeah, I’ve enabled and disabled my Gmail service.)
Please fix the issue as soon as possible, it has lasted for over a week!

Same issue here: Google AI Pro active until Jan 2027, but no project in Cloud Console, error “Invalid project resource name projects/”.
Trajectory ID: 130e2dcd-313c-4341-8647-…
TraceID: 0x1cb5e66d…
Tried #27 steps, still stuck. Submitted in-app feedback with full logs. Please escalate!

Yes, it started working after I deleted Gmail from Google Services and left my regular email address. In fact, it continued working even after I added Gmail back using mail.google.com. I logged out of Antigravity and logged back in with my Gmail, and it’s still working.

I deleted my Gmail account but didn’t log out:

I re-added my Gmail account and logged into Antigravity again from scratch:

Although I’m not entirely sure:

The Error Log:

JSON

Error: HTTP 400 Bad Request

{
  "error": {
    "code": 400,
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "description": "Invalid project resource name",
            "field": "name"
          }
        ]
      }
    ],
    "message": "Invalid project resource name projects/",
    "status": "INVALID_ARGUMENT"
  }
}

My Theory / Root Cause (For Devs):

Based on the Invalid project resource name projects/ error (notice the missing project ID after the slash), it seems Antigravity fails to fetch the project ID when the primary alias of a Google Account changes. Here is the step-by-step breakdown of how the bug triggers:

  1. A user signs up/authorizes Antigravity using a non-Gmail Google account (e.g., an Outlook/Hotmail address). A project is created and linked to this identity in the background.

  2. The user later adds the “Gmail” service to their existing Google account, which automatically makes the new @gmail.com address their primary alias.

  3. When the user tries to log into Antigravity using this new Gmail alias, the system fails to map it to the originally created project. The API sends an empty project ID (projects/), which triggers the HTTP 400 fieldViolations error.

The Workaround / Fix:

  1. Go to your Google Account settings and temporarily delete the Gmail service (WARNING: This deletes your inbox, so only do this if you don’t have important emails).

  2. Log into Antigravity using your original non-Gmail email. It will work flawlessly.

  3. Re-add the Gmail service to your Google Account via mail.google.com.

  4. Log out of Antigravity and log back in with your Gmail. The tokens sync correctly, and the IDE continues to work without any issues!

Hope this helps anyone stuck with the same error!

2 Likes

Trajectory ID: 5496a0a0-c2f0-4d38-…
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0xec59dd5cd…
Headers: {“Alt-Svc”:[“h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000”],“Content-Length”:[“382”],“Content-Type”:[“text/event-stream”],“Date”:[“Mon, 23 Feb 2026 18:32:44 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=522”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“ec59dd5cd7ffeae9”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}

{
“error”: {
“code”: 400,
“details”: [
{
@type”: “type.googleapis.com/google.rpc.BadRequest”,
“fieldViolations”: [
{
“description”: “Invalid project resource name”,
“field”: “name”
}
]
}
],
“message”: “Invalid project resource name projects/”,
“status”: “INVALID_ARGUMENT”
}
}

This issue has been going on for a while now.

Is anyone working on it or do we have an ETA for a fix?

I can’t use Antigravity at all right now

The solution with removing the Gmail address from my Google account did the trick. Thank you so much for the detailled description. I have been searching for 3 weeks now and Google did not provide any support!!
Great Job!!! :grinning_face: :+1:

that solution worked for one prompt and then stopped working

I have the same problem. I updated Antigravity because the 3.1 model wasn’t supported by the old version, and since then I’ve only been getting:

{
“error”: {
“code”: 400,
“details”: [
{
“@type”: “``type.googleapis.com/google.rpc.BadRequest”``,
“fieldViolations”: [
{
“description”: “Invalid project resource name”,
“field”: “name”
}
]
}
],
“message”: “Invalid project resource name projects/”,
“status”: “INVALID_ARGUMENT”
}
}

Logging out, logging in, deleting third-party links, etc., nothing helps.
When will this bug be fixed?

1 Like

If you’ve changed your Gmail address after using Antigravity and encounter an Invalid project resource name projects/ error, try:

  1. Find your original email in the Alternate emails section of your Google Account settings
  2. Click “make this your google account email”
  3. Re-login to Antigravity

This might help resolve the issue.

4 Likes

Oh my god. When will the issue be fixed? I can’t use any services since weeks ago… :angry:

1 Like

This works for me, thanks