google / play-work

Apache License 2.0
84 stars 42 forks source link

Error uploading the json file on Play store #20

Open iminderN opened 7 years ago

iminderN commented 7 years ago

When I try uploading the Json file on Play store, I get this error :"Your Externally-hosted APK Definition file is missing the mandatory attribute application_label."

I have checked the json file, it indeed doesnt have the application_label attribute

hdurer commented 7 years ago

That field (like various others as outlined in theREADME.md file) are indeed required. The tool failed to extract that information from the output of the aapt tool. I'm not sure what's going on there — it worked for my apk when I tried it.

I suggest you manually add that field to the file and try again.

We should fix the tool to warn about values that are required but not be extracted. Or maybe we could even use some sensible default values for certain fields that have such defaults we could use.

deepakypro commented 6 years ago

When I try uploading the Json file on Play store, I get this error "The APK is externally hosted so it cannot be signed by Play".

ghost commented 6 years ago

It sounds like when you initially created the app you enrolled in Google Play App Signing which is incompatible with Externally Hosted Apps.

AFAIU, you'll need to create a new app as enabling Google Play App Signing is irreversible.

Make sure you choose to opt-out of Google Play App Signing when you go to upload your JSON file: select "OPT-OUT" when uploading the App

HTH,

Matt

pranaysharma commented 6 years ago

HI @MEKeller thanks for the reply. Is it possible to upload the above json using an API?

ghost commented 6 years ago

Hi @pranaysharma

No. Publishing externally-hosted apps is only supported via the Play Developer Console UI.

Thanks,

Matt

pranaysharma commented 6 years ago

Hi @MEKeller How about this api: https://developers.google.com/android-publisher/api-ref/edits/apks/addexternallyhosted Have not tried it yet though