Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check to make sure an app exists first #75

Closed
jaredsburrows opened this issue May 23, 2015 · 4 comments
Closed

Check to make sure an app exists first #75

jaredsburrows opened this issue May 23, 2015 · 4 comments

Comments

@jaredsburrows
Copy link

It seems that you must upload an initial APK:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"location" : "packageName",
"locationType" : "parameter",
"message" : "No application was found for the given package name.",
"reason" : "applicationNotFound"
} ],
"message" : "No application was found for the given package name."
}

@jaredsburrows jaredsburrows changed the title Possibly check to make sure an app exists first Check to make sure an app exists first May 25, 2015
@bhurling
Copy link
Contributor

Perhaps we should wrap that exception into our own exception like we did for invalid locales - #33

@janni2
Copy link

janni2 commented Jun 29, 2015

Is it possible to upload a new apk, whose package name is not yet registered at google play store ? In the androidpublisher sample it seems not to be part of. And when I have a look at the insert method of Google's API, the call is "POST https://www.googleapis.com/androidpublisher/v2/applications/packageName/edits" so this would explain, why I get a 404 on unknown package names.

Update of app works nicely. But before this is possible, one has to upload the apk manual once.

@bhurling
Copy link
Contributor

That is true. The first upload of an APK needs to be done through the web
interface.

janni2 notifications@github.com schrieb am Mo., 29. Juni 2015 15:07:

Is it possible to upload a new apk, whose package name is not yet
registered at google play store ? In the androidpublisher sample it seems
not to be part of. And when I have a look at the insert method of Google's
API, the call is "POST
https://www.googleapis.com/androidpublisher/v2/applications/packageName/edits"
so this would explain, why I get a 404 on unknown package names.

Update of app works nicely. But before this is possible, one has to upload
the apk manual once.


Reply to this email directly or view it on GitHub
#75 (comment)
.

@jaredsburrows
Copy link
Author

@janni2 Thanks for confirming you are seeing the same exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants