Error Code 002 on the Graphy Android app typically indicates an issue with the Play Integrity API. This error can occur if the API is not properly configured or if there are issues with the app’s setup in the Google Play Console. To resolve this issue, you need to ensure that the Play Integrity API is correctly enabled and configured.
Steps to create Service Account json file required to update android app
To push app updates directly from App Builder, you need to create a Service account for us to push the app updates directly on Play Store.
The following instructions explain the steps needed to create a Service account JSON.
- Create a Google Cloud Project.
- Enable the Google Play Developer API for your Google Cloud Project.
- Set up a service account with appropriate Google Play Console permissions to access the Google Play Developer API.
Create a Google Cloud Project
You can skip this step if you already have a Google Cloud Project you want to use.
Enable the API
Once you have set up the Google Cloud Project, you need to enable the Google Play Developer API for this project.
To enable Google Play Developer API:
- Go to the Google Play Developer API page in Google Cloud Console.
- Click Enable.
Create a service account

- Step 1: Go to the IAM & Admin ->service accounts section from the left menu of your Google Cloud console and click on Create Service Account at the top.

Step 2: Provide a relevant service account name for the same.

- Step 3: Click on Create and Continue.

- Step 4: Assign Roles to this service account- Click on Role and scroll down to Service Accounts and select Service Account User role from the drop-down.

- Click on + Add Another Role Button & scroll down to Service Usage and select Service Usage Consumer Role from the drop-down.

- Step 5: Click on the three-dot menu of the service account you just created & Click on Manage keys in the three-dot menu.

- Step 6: Click on Add key and then select Create new key.

- Step 7: Select JSON in the popup that appears on the screen and click on Create.

The key is saved on your computer.
- Step 8: Search for API & Services on Cloud and select it.

- Step 9: Click on Enable Api & Services.

- Step 10: Search for Google Play Integrity API and select it.

- Step 11: Click on Enable.

- Step 12: Now search for Google Play Developer API and Enable it in a similar way.
- Step 13: Go to the IAM & Admin ->service accounts section from the left menu of your Google Cloud console & copy the service account user email.


- Step 18: Go to the Account Permissions Tab & Grant Admin permissions and then click on Invite user.

Step 19: Go back to the App builder on your Graphy Dashboard and upload the .json file saved on your computer which you created in Step 7.
Steps to enable Play Integrity API -
- Log into the Play Console and select the app for enabling Play Integrity API.
- In the Release section of the left menu, go to App integrity.

- Click on the Link Cloud Project button, as shown in the screenshot above.
- Now select Link Existing Project.

- Ensure the project selected in the dropdown is the same project linked to Play Console in the steps to create service account, and click on the Link Project button.

- Now scroll down to Play Integrity API and click on the Settings button.

- Scroll down to the Responses section and click on Change Responses.

- Toggle on the Meets Basic Device Integrity and click on the Save Changes button.

Upon completing the above steps, go to your App-builder dashboard and click on the Verify Play Integrity API button for these changes to be successfully validated for your Android application.
Troubleshoot Errors:
1. Even after completing all the above steps if the learners are getting the error code 002, please ensure that steps 6 to 8 are followed properly.