Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ltntai/google-cloudcode-hosts-fix

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Fix Google Cloud Code

Sửa lỗi đăng nhập Google Cloud Code / Antigravity trên Windows

Windows Google Cloud Code Batch License

Một file .bat duy nhất, không cài đặt, không chạy nền — chỉ cần double-click là xong.


❓ Lỗi là gì (What's the problem)

Khi dùng Google Cloud Code / Antigravity, đôi khi bạn gặp lỗi sign-in thất bại hoặc không thể xác thực tài khoản Google. Nguyên nhân thường là do file hosts của Windows bị thêm một dòng trỏ domain cloudcode-pa.googleapis.com về một IP sai/local, khiến trình duyệt không thể bắt tay TLS với máy chủ thật của Google.

Lỗi tiếng Anh thường gặp:

  • Could not authenticate / Sign-in failed
  • net::ERR_CERT_AUTHORITY_INVALID đối với cloudcode-pa.googleapis.com
  • The connection was reset khi gọi API Google

🧰 Cách hoạt động

File fix-google-cloudcode.bat sẽ:

  1. Tự động xin quyền Admin (nếu chưa có) — vì sửa file hosts cần quyền Administrator.
  2. Xóa dòng cloudcode-pa.googleapis.com khỏi file hosts (C:\Windows\System32\drivers\etc\hosts).
  3. Flush DNS (ipconfig /flushdns) để xóa cache tên miền cũ.
  4. Kiểm tra kết quả — báo [OK] nếu đã sạch, hoặc [LOI] nếu vẫn còn dòng cũ.

Note

Script chỉ xóa đúng những dòng khớp với cloudcode-pa.googleapis.com, hoàn toàn không đụng tới các dòng hosts khác (Docker, localhost, ...).


📦 Cấu trúc repo

File Vai trò
fix-google-cloudcode.bat Toàn bộ tool — chạy xong là sửa xong, không để lại process nào.
README.md File hướng dẫn này.
LICENSE MIT.
.gitignore Bỏ qua file rác khi commit.

🚀 Cách dùng

  1. Tải file fix-google-cloudcode.bat về máy.
  2. Chuột phải → Run as administrator (hoặc double-click, script sẽ tự xin quyền Admin).
  3. Đợi chạy xong, thấy dòng [OK] Hosts sach! là thành công.
  4. Mở lại Google Cloud Code / Antigravity và thử đăng nhập lại.

Tip

Nếu vẫn lỗi sau khi chạy, hãy thử khởi động lại trình duyệt, hoặc kiểm tra thêm phần mềm VPN / proxy khác có đang chặn googleapis.com hay không.


🪟 Yêu cầu

  • Windows (có quyền Administrator)
  • Google Cloud Code / Antigravity IDE

Made with 💙 by Tấn Tài

About

Fix Antigravity / Google Cloud Code sign-in setup error on Windows by removing broken hosts entries and flushing DNS.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.