Skip to content

Google Api Error: applicationNotFound: No application was found for the given package name. #14686

@blackholegalaxy

Description

@blackholegalaxy

New Issue Checklist

Issue Description

We build an android app using and try to build and ship it with fastlane.

When trying to send our app through fastlane supply, an error occurs:

Google Api Error: applicationNotFound: No application was found for the given package name.
Command executed

bundle exec fastlane android beta

Complete output when running fastlane, including the stack trace and command used
Details
 bundle exec fastlane android beta

[23:06:46]: Driving the lane 'android beta' 🚀
[23:09:47]: --------------------
[23:09:47]: --- Step: supply ---
[23:09:47]: --------------------

+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Summary for supply 2.121.1 |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| package_name | Birds Example |
| json_key_data | ******** |
| apk_paths | ["build/outputs/release/arm64-release.apk", "build/outputs/release/armv7-release.apk",] |
| track | internal |
| skip_upload_apk | false |
| skip_upload_aab | false |
| skip_upload_metadata | false |
| skip_upload_images | false |
| skip_upload_screenshots | false |
| validate_only | false |
| check_superseded_tracks | false |
| timeout | 300 |
| deactivate_on_promote | true |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

+---------------+--------------+
| Lane Context |
+---------------+--------------+
| PLATFORM_NAME | android |
| LANE_NAME | android beta |
+---------------+--------------+
[23:09:48]: Google Api Error: applicationNotFound: No application was found for the given package name.

+------+---------+-------------+
| fastlane summary |
+------+---------+-------------+
| Step | Action | Time (in s) |
+------+---------+-------------+
| 💥 | supply | 0 |
+------+---------+-------------+

[23:09:48]: fastlane finished with errors

[!] Google Api Error: applicationNotFound: No application was found for the given package name.

Environment

Details
✅ fastlane environment ✅

Stack

Key Value
OS 10.13.6
Ruby 2.3.7
Bundler? true
Git git version 2.17.2 (Apple Git-113)
Installation Source ~/dev/birds/vendor/bundle/ruby/2.3.0/bin/fastlane
Host Mac OS X 10.13.6 (17G6030)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
OpenSSL Version LibreSSL 2.2.7
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 10.1

System Locale

Variable Value
LANG en_CA.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
platform :android do
  desc "Deploy internal beta android app on play store"
  lane :beta do
    supply(
      package_name: 'Birds Example',
      json_key_data: ENV['GOOGLE_PLAY_CREDENTIAL'],
      apk_paths: [
        'build/outputs/release/arm64-release.apk',
        'build/outputs/release/armv7-release.apk'
      ],
      track: 'internal'
    )
  end
end
`./fastlane/Appfile`
# iOS
app_identifier "com.example.birds"
apple_id "contact@example.com"
team_id "XXX"

# Android
package_name "Birds Example"

fastlane gems

Gem Version Update-Status
fastlane 2.121.1 ✅ Up-To-Date

Loaded fastlane plugins:

Loaded gems
Gem Version
did_you_mean 1.0.0
bundler 2.0.1
io-console 0.4.5
CFPropertyList 3.0.0
public_suffix 2.0.5
addressable 2.6.0
atomos 0.1.3
babosa 1.0.2
claide 1.0.2
colored 1.2
colored2 3.1.2
highline 1.7.10
commander-fastlane 4.4.6
declarative 0.0.10
declarative-option 0.1.0
digest-crc 0.4.1
unf_ext 0.0.7.6
unf 0.1.4
domain_name 0.5.20180417
dotenv 2.7.2
emoji_regex 1.0.1
excon 0.64.0
multipart-post 2.0.0
faraday 0.15.4
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.13.1
fastimage 2.1.5
gh_inspector 1.1.3
jwt 2.1.0
memoist 0.16.0
multi_json 1.13.1
os 1.0.0
signet 0.11.0
googleauth 0.6.7
httpclient 2.8.3
mime-types-data 3.2019.0331
mime-types 3.2.2
uber 0.1.0
representable 3.0.4
retriable 3.1.2
google-api-client 0.23.9
google-cloud-env 1.0.5
google-cloud-core 1.3.0
google-cloud-storage 1.16.0
json 2.2.0
mini_magick 4.5.1
multi_xml 0.6.0
plist 3.5.0
rubyzip 1.2.2
security 0.1.3
naturally 2.2.0
simctl 1.6.5
slack-notifier 2.3.2
terminal-notifier 2.0.0
unicode-display_width 1.5.0
terminal-table 1.8.0
tty-screen 0.6.5
tty-cursor 0.6.1
tty-spinner 0.9.0
word_wrap 1.0.0
nanaimo 0.2.6
xcodeproj 1.8.2
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.0

generated on: 2019-04-26

Additional note

It's our first attempt to push an app to Playstore. We don't have any artifact yet in any track.

Our Play Store account has a draft app with proper matching name:

Screen Shot 2019-04-26 at 7 19 38 AM

I tried re-generate the credentials key without any change to the error.

Is it safe to use a package name similar to the one on iOS com.example.birds? If yes, how then to set a proper name for Play Store users?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions