Help needed: Google API project for Drive keeps disappearing

I’m having trouble with my Google API project for an Android app. The app uses Drive API and SDK to access my Google account folders and files. At first, everything works fine. But after a few weeks, the project vanishes!

I think Google is deleting it automatically. This breaks my app completely. I’ve tried undeleting the project, but it doesn’t always work. Sometimes I have to start from scratch with a new project and API key.

Does anyone know how to stop this from happening? I need to keep my project active so my app doesn’t break. Is there a setting I’m missing or something else I should do?

Any help would be awesome. I’m tired of fixing this over and over!

I’ve dealt with a similar issue where projects disappeared unexpectedly, and over time I’ve found that keeping the console active plays a key role in preventing deletions. In my experience, regularly logging into the Google Cloud Console and making minor updates or check-ins can signal that the project is active. Enabling billing—even if you stay within the free tier—seems to reinforce the project’s legitimacy. I also keep an eye on email notifications to catch any warnings early. Switching to service account access has added a layer of reliability, reducing the need to recreate projects.

This issue often stems from Google’s automatic cleanup of inactive projects. To prevent this, ensure you’re regularly using the API. Set up a simple scheduled task that performs a harmless API call daily. This keeps the project active in Google’s eyes.

Another trick is to associate the project with a Google Cloud billing account, even if you’re not incurring charges. This flags the project as more ‘official’ to Google’s systems.

Lastly, double-check your project’s retention settings in the Google Cloud Console. Sometimes, there are options to extend the inactivity period before deletion. By tweaking these settings, you might buy yourself more time between active uses.

hey, try enabling billing on ur project. even if u dont spend $$$, it keeps it active. also, set up a cron job to ping the API daily. that way google knows its not dead. oh and check ur email regularly for any warnings from google. good luck dude!