How to fix the "Invalid Data safety form" error.
Google detected user data leaving your app that your Data safety form doesn't declare. In most cases a third-party SDK sends that data, not your own code.
Read the email carefully. It lists the version code, the data type (for example Device or other IDs) and sometimes the SDK that Google believes sent the data.
Find every SDK in your app. Google holds you responsible for data collected by any library you bundle, even features you never call.
Choose a fix: either declare the data type in your Data safety form, or remove the code or SDK that sends it (for example, remove the
AD_IDpermission if you don't use ads).Update the form in Play Console under Policy and programs > App content > Data safety, or import the CSV generated above.
Replace every non-compliant build. After a code change, upload a new release with a higher version code to every track that still serves the old one, including internal, closed and open testing tracks. Roll out to 100%.
Update your Privacy Policy so it describes the same data and third parties as your Data safety form.
Send the changes for review from the Publishing overview page.
How to import the CSV into Play Console.
Open Play Console and select your app.
Go to Policy and programs > App content, then select Data safety and click Start (or Manage).
Click Import from CSV at the top right and upload the file. Importing overwrites any answers already in the form.
Step through every page of the form, check each answer and click Save.
Go to Publishing overview and send the changes to Google for review.