How do I update Google Play Services on Android Studio? - java

I have changed the dependencies and installed the necessary files needed. However, whenever I run my emulator, a message with pop up saying that I have to update my Google Play Services. Any idea on how to solve this problem?

Go to settings from file and update the Google Play services from the SDK manager:

Related

how to fix: Google Play services out of date. Requires 12210000 but found 10298470

i am applying ads on my applications using android studio 3.0
but when i run the application it give this notification in Run Panel
Google Play services out of date. Requires 12210000 but found 10298470
help me fixing this problem
You are requiring services 12.0.0 in your build.gradle file, but the emulator or device has an out of date google play services. If you are using an emulator, you need to use an emulator with Google Play so that you can update the services version. https://stackoverflow.com/a/35498283/3962777

Is EMM what I'm looking for?

We have a Java based web application and an android app for our enterprise needs. We would like to remotely push the android app from the web application and we don't know how to achieve this. After searching in Google, I found Android EMM but did not understand what that is exactly as there were no other blogs or tutorials other than the Google site which was difficult for me to understand.
It is similar to MDM solution but do MDM servers have an app preinstalled in the devices so that the installed app manages the installation of other apps?
Can anybody tell how to remotely push the android app from my web application?
To remotely push an app to an Android device you need to manage this device, you cannot just push an app on anyone's device. To manage a device you need to set up this device as managed, which will require a factory reset.
If you want to pursue this approach you can try the Android Management API.
You can just upload .apk file to your server and provide a link to the user. This is a very simple solution but requires user to agree "install apk from third party sources". In this case, a user needs to agree with installing apk.
If you want to install apk without user agreement you need to activate Device Owner on Android (Fred mentioned in the comment this approach).

Downgrading 9.0.83 Google Play Services manually to avoid DynamiteModule: Failed to load module descriptor

I got the following log error in my route tracking activity:
06-24 18:50:24.488 7128-7759/com.noureddine_ouertani.www.wocelli50
E/DynamiteModule: Failed to load module descriptor class: Didn't find
class
"com.google.android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptor"
on path: DexPathList[[zip file
"/data/app/com.noureddine_ouertani.www.wocelli50-2/base.apk"],nativeLibraryDirectories=[/vendor/lib64,
/system/lib64]]
After reading some posts and answers (e.g. this or this) about this log error I figured out that it's a known Google Play Services version 9.0.83 issue that causes bugs in some apps that use a GoogleApiClient like mine.
However I didn't test the solution yet. I wanted to downgrade Google Play Services on my Smartphone but Uninstall Updates was greyed out (see Screenshot).
Does anyone know how to do this manually?
By checking the internet for your problem about how to downgrade Google Play Service when the Uninstall Updates was grayed out. I came up with many possible solution. You can check it all and try if this method helps you.
From this Stack Exchnge question, you can try the solution here that states:
If you have the Android Device
manager
app installed then this can also make the force stop/uninstall updates
buttons be disabled.
If you uninstall the Android Device manager app and disable "Android
Device Manager" as a device administrator then those options should be
enabled.
From this forum, the solution here needs you to download and install System App Remover from the Google Play Store. Just check the forum link to know more about the steps and their information.
And lastly, you can also check the solution in the discusion of this forum page.
I solved the problem for my Huawei P8 Lite Android phone like this:
I unlocked my bootloader like in this video
I rooted my phone like in this video
I succesfully checked with Root Checker Basic that my phone is rooted
I downloaded and installed System App Remover from the Google Play Store.
I put my device in Airplane Mode in order to prevent auto upgrade of GPS.
I opened System App Remover and select "System App" from the menu.
After I found Google Play Services in the list which was marked as "Should keep" I selected it and pressed "Uninstall". I ignored the next warning.
Using Settings/Apps, I saw that Google Play Services "Uninstall Updates", and "Disable" Buttons were no longer be grayed out.
I pressed "Uninstall Updates"
Here is the result: Downgrade of Google Play Services to 8.1.18

How to install Android GCM

I can't find a way to install the Android GCM through the SDK Manager. I have managed to install the play services but in the extras folder I can't find the GCM.jar library. The GCM is not listed in the SDK Manager checkboxes although I have made all the possible updates
You don't need GCM.jar. Only PlayServices library is required.
Refer: http://developer.android.com/google/gcm/gs.html
There is only Google Play Services you need to setup. Implementing GCM Client is the complete source code, given by android documentation .

is there any api to clone the behavior of Android Market application? is it even possible?

Using the Android market app, or better to say, the Google Play app in your device, you can search the market and with one click you will download and install the app you want!
I'm working on a project that searches the android market for a keyword and although I can have access to the apps and their descriptions, I don't seem to be able to download the app from my app like how its done in Google Play app!
is there anyway we can do that? maybe somehow connect to the current Google Play app installed on users devices and use it for the download and the installation process?
Thanks,
Hadi
If you know the package name of the app, you can launch an intent that will take the users to the play store via the google play app from their phone.
ex:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);
If you don't want to go to google play store and use your own market-like service then you won't find an API since this is a use case google would certainly not want to entertain, since they want people to go through their store. But you can host the apk yourself on a web server and when user clicks the install button in your app, download the apk from your own web server via an API you write yourself and the default android package manager will install it for you.

Categories