Auto push android apk to google play using google play service - android

I want to push android apk to google play using google play service in automated way.
As of now I am building my android app using Ant and windows batch scripts and able to get the .apk file without any manual intervention.
Now I want to upload the generated .apk file to google play using google play services with help of ant and windows batch scripts in automated way.
When I google i come to know that by using gradle I can do it, but I am unable to build my project using gradle. So, I don't want to go this way.
I am able to push .apk to google play manually using my google play developer console.
Now I what to automate this process, How can i achieve this.

There's quite a bit of handling required with the Google Play Services API, for which the Windows batch commands are likely insufficient.
Since you don't want to change your project to Gradle, have you given a bit of thought to using Jenkins? It can be a light weight "provisioning" server on your system, that achieves what you want by using the Jenkins Google Play Android Publisher Plugin (see the complete step by step instructions). The good part is you don't have to change your Ant project. You can in future even automate more of your dev-test-deploy cycle by leveraging more of Jenkins capabilities.

You might want to look into Fastlane (and Supply in particular): https://github.com/fastlane/fastlane/tree/master/supply#readme
Basically, it's a command-line tool to upload binaries, screenshots and changelogs to Google Play.

Related

Distribute apk outside play store (to non gms devices)

I have this app released on play store that I want to make available on my website. I tried downloading the signed apk via the Google play console and use that, but some users in China have issues installing it.
They get a message like this while installing: "Your device does not support Google Play Services and cannot install "
I have a few Google sdk bits referenced in my project (signin, safetyNet, ads) which I would assume I need to delete before building for this apk version, since target devices don't have gms..
What about signing? Can I simply build without the said code and distribute it? (Generate release apk in android studio) Or do I need to upload to play console and download the one signed from google?
Please let me know if you have any clues on this, been banging my head around for a few days already.
Cheers :)
This might help you taking your decision:
If you have Play App Signing enabled, the APK generated through your studio and the APK generated through Play Console will have different signatures.
Otherwise, both approaches will have the same signatures.
So, it depends whether you care about your APK on website having the same signature as Play Store. If you don't care about having same signature, you can go ahead with creating APK from Android Studio itself and publish to your website.
If your app utilizes Google Play Services, as is informed by the error message, then it WILL not run on the device unless Google Play Services and everything that it depends on is installed on the device. The only work around is to convert your app features that uses Google Play Services to its alternative that's supported in China.
I've dealt with similar issue on Huawei smartphones, my approach was to 'develop another app' using Huawei SDK, check out https://developer.huawei.com/consumer/en/ for its complete reference

Android: upload apk from android studio terminal to google drive account

Can I generate APK and upload it to google drive using an android studio terminal?
Most likely you can write a gradle script or use a gradle TaskExecutionListener to generate/listen to the apk and then upload it to a given google drive. As far as I know there are some Google Drive CLI clients so you just need to piece them together.
I don't know about any built-in solution for Android Studio if that is what you are looking for.

Your Instant App APKs do not declare a valid

Am having a bad time with android in order to create new release
i have created a Signed APK with two option
then i zipped the .apk file,after trying to upload it to google console am getting the below error
Your Instant App APKs do not declare a valid 'android:targetSandboxVersion' attribute in their AndroidManifest. Using the 'com.android.feature' Gradle plugin to build your Instant App would add this attribute automatically.
Note : the file zipped and all the solutions asking to zip the file, no luck :(
You need to be clear if you are producing an Instant App or a normal Android app. I think this is what is confusing you, or maybe you just aren't being clear in the question.
Android Instant Apps are special Android apps that launch from a web page, and don't need a user to install them. To build them you need the Instant Apps SDK, and to follow the development instructions here. Android Studio will produce a zip for you, you don't need to do it manually
For normal Android apps, you don't need to zip your APKs. Just upload the APK itself to the Play Console.
I think you are probably making a normal Android app, but because you are zipping it, the Play console thinks you are uploading an instant app. So stopping Zipping your APK, and just upload it to the Play Console as a ".apk" file.
While you are at it, I'd recommend using APK V2 signing - it gives much faster installation on modern devices.

Include Google Play Services with Source Code?

My project is open source and implements features from Google Play Services such as location. I'm having trouble in that when I upload my project to GitHub for instance, when the project is downloaded onto another user's machine to be worked on, all the references to Google Play Services become 'cannot be resolved' errors. Even uploading and redownloading the source on my own machine which has the Google Play Services SDK results in errors. Apparently the source code needs to be manually linked to the Google Play Services SDK each time it is imported to a different machine.
Is there a way to include the Google Play Services code in the source without requiring each user that downloads it to manually set up the Google Play Services SDK?
https://github.com/owncloud/android/blob/master/SETUP.md
This is a setup guide of another app. in it you can see setup_env scripts. You can have a solution like this and write a setup guide like this one for users who want to build.

Android Google Maps Development with Emulator - Repository of Standard APKs

I am a newbie to Android programming and i started putting together an application using Google Maps using Eclipse with KitKat SDK. I developed a simple app to display Google Maps in the Emulator by installing com.android.vending(4.6.16) and com.google.android.gms(4.3.25) apks. I downloaded these APKs from different sites(not sure how authentic they are).
I am making use of the command aapt dump badging to determine the version.
The map opens but i was repeatedly getting a message that "Unfortunately Play Services has stopped"
Objective is to ensure that I am using the right set of APKs with the emulator
The trouble that i am facing is there seems to be no clear directives on where i can find the authentic version of these APKs. I tried Google Play and when i give a search for com.google.android.gms, it yields a result of applications. I was expecting a URL to download the recent version of the APK. Correct me if i am wrong
1. How to download just the recent version of APKs from Google Play ? Am i looking at the correct site
2. Second is there any authorized site from where i can download these APKs?
I was looking for a listing of the APKs with the version number against it. So that i can download the version that i need. I am not sure of the dependencies of the APKs on the Android platform.
3. Finally is there any dependency between com.google.android.gms.apk and the com.android.vending.apk on the basis of the version or the SDK platform used?
Thanks
Govindarajan
I have a suggestion, Try to use Genymotions for testing maps/places app. it is faster than emulator and you can build and check maps application.
www.genymotion.com/‎
LINK

Categories

Resources