Krisna
Krisna

Reputation: 3423

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

Upvotes: 18

Views: 15745

Answers (3)

Marux
Marux

Reputation: 13

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.

Upvotes: -1

itzhar
itzhar

Reputation: 13031

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

fastlane supply init

Upvotes: 1

Krisna
Krisna

Reputation: 3423

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.

Upvotes: 52

Related Questions