'fastlane: [!] Google Api Error: Invalid request - Package not found: com.example.todo

I am using React-native for my app. I have named my name reactamplify. I want to deploy my app to Google play-store. For automation deployment I am using first time fastlane. I found this documentation, follow the steps and give API grant access. In my React native app, I navigate to android folder then run this command fastlane init. Give json_key_file path my downloaded auth json file. But I got confused about package name. I search my app name in vscode com.reactamplify replace them into com.example.todo. Then run android folder fastlane supply init, I am getting this error: [!] Google Api Error: Invalid request - Package not found: com.example.todo. I really don't know how to fix it :(. Really lost TBH.

When I run fastlane supply. I got this image

enter image description here

PS: It would be awesome if someone gives me example with images



Solution 1:[1]

I found the reason. I need to upload at least one build to google Play store app manually. That’s why I got package name error.

Solution 2:[2]

In my case, I deleted the fastlane folder and then ran the following again:

fastlane supply init

Solution 3:[3]

For me i found that google play ignore the "com." in the package name! So when submitting a new release make sure to remove "com." from your package string.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Jeremy Caney
Solution 3 Marux