android-play-publisher-api
android-play-publisher-api copied to clipboard
Support for Android App Bundle
Add example for uploading aab file to playstore.
When I try to upload a .aab file I get this error.
File "/Users/XYZ/Library/Python/2.7/lib/python/site-packages/googleapiclient/discovery.py", line 814, in method
raise UnacceptableMimeTypeError(media_mime_type)
googleapiclient.errors.UnacceptableMimeTypeError: application/x-authorware-bin
You can try https://github.com/rakeshgirase/app-release-manager. This is a java project but on similar lines you can do a python one.
@rakeshgirase managed to get this done by editing the upload call to include mime type:
+ service.edits().bundles().upload(
editId=edit_id,
packageName=package_name,
media_body=apk_file,
+ media_mime_type="application/octet-stream"
).execute()
Any updates on this?
@redixhumayun you can use this library