Does Google Firebase work on Android version 4.4.2(kitkat)? - android

I am building an app using the firebase database I have used in gradle:
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
But my app works well in android lollipop, marshmallow and nougat very well but doesn't work at all in android kitkat. Whenever I run app, it doesn't crash but it is not able to read or write data from firebase. Please help me in this case.

Yes, it does
read the prerequisites in the following link
https://firebase.google.com/docs/android/setup

I had the same problem, I managed to solve it after couple of hours,
The problem was with the play services,
Android Studio Was giving a warning that
Google Play services out of date. Requires 10298000 but found 9256032
In short your phone has low version of play services installed than what it is needed.
To solve this you can use a lower version of play services in your gradle file.
compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.google.firebase:firebase-auth:9.0.2'
compile 'com.google.firebase:firebase-core:9.0.2'
compile 'com.google.firebase:firebase-crash:9.0.2'
compile 'com.google.firebase:firebase-storage:9.0.2'
or you can also update the google play services from play store

Related

Android GCM-App won't run unless you update Google Play Services

I am using GCM Push Notification Code in my Android Project. While running on real Devices, every times it ask me to Update Google Play Services.
I am using the following version for GCM library:
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.android.support:support-v4:19.1.0'
}
I am using the same code from Android quickStart Sample:
Sample Code Link
I am targeting my App for 5.0 and above Devices. Is there any way, so that I can switch to lowest library version of GCM that majority of Android 5.0 comes with.
So that I need to install updated version of Google Play Services while running my App.
Always compile your project with the latest version which support libraries. They run on all version previous versions of Android.
All Android 2.3, 4.x, 5.x, 6.x version run the same latest version of the latest support libraries.
Current latest version of support libraries are
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
}
The whole point of providing Play Services and Support libraries is that Google can update following libraries on all phones without updating the core Android OS.
If you get message on your phone that you need to update Play Services then please do so. Without having the latest version of Play Services many apps will have problems to run.

Android Device 4.4.4 Google Play Services

I am developing an Android app and want to support back to API version 15.
The device I'm running has Android version 4.4.4
Google Play service is install on the device with version 4.4.52
What dependency do I need to add to my gradle? I've tried a bunch but haven't had luck:
Example:
1)
compile 'com.google.android.gms:play-services-location:6.+'
This compiles however it fails on run saying play services needs an update.
2)
compile 'com.google.android.gms:play-services-location:4.4.52'
This doesn't compile and I get the following error that I'm unsure how to fix.
google play services 4.4.52 attribute "theme" has already been defined
Here is a list of my entire Gradle dependencies:
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'org.parceler:parceler:0.2.13'
compile 'com.jpardogo.materialtabstrip:library:1.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.android.gms:play-services-location:6.+'
You should use: com.google.android.gms:play-services-location:7.5.0.
To get the following info: Google Location, Activity Recognition, and Places.
GooglePlay Service is compatible to Android device that runs Android 2.3 or higher and includes Google Play Store.
All info about GooglePlay Service SDK, you can look at: https://developers.google.com/android/guides/setup

Android google map not visible on emulator due to google service update issue

I am creating a google map application and I want to view my output on an emulator and I am developing using android studio version (beta)0.8.6. I have updated my sdk and installed all the necessary packages including google play services, google play repository and google apis for jelly beans 4.4.2 api level 17. But then again it shows :" This app wont run unless you update google play services".
this is my build .gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:5.2.08'
}
and it shows me this message in logcat:
Assertion failed: for not generated items old indentation must be defined: element PsiElement(new line)
Please help me I am stuck on it for days.
I also had a lot of trouble with that.
Look in your device or emulator and see which version of Google Play Services you are using. I had version 5.0.89 on all my devices.
If you don't have Google Play Services, install the google apps (gapps) on your emulator or use a real device.
try changing this line
compile 'com.google.android.gms:play-services:5.2.08'
to
compile 'com.google.android.gms:play-services:5.0.89'
That helped for me.
(for some reason my build.gradle changed 5.0.89 to 5.2.08 again and it still works...)
related question with possible answers: play services update required
Here is another example where it worked: After update - crash com.google.android.gms:play-services:5.2.8

Google Play services - version issue

I am targeting Android > 19. The latest Google Play services version is 5.2.08, but on my device the latest I can install is 4.4.52.
Now, when I check for GooglePlayServicesUtil.isGooglePlayServicesAvailable() I always get that my version needs to be updated and I am redirected to the store. But I cannot update from strore, because the latest version is not supported on my device (I see only open and uninstall buttons).
What is the solution for this? I need only notifications feature, nothing more. Should I use older version of Play Services? How can I know which version to choose? Where to get the official older version?
Thanks
If you use Android Studio, just replace in build.gradle :
compile 'com.google.android.gms:play-services:+'
by
compile 'com.google.android.gms:play-services:5.0.89+'
or lower
You should have something like this in your build.gradle:
compile 'com.google.android.gms:play-services:5.0.+'
Try changing it to something like this:
compile 'com.google.android.gms:play-services:4.4.+'

Google Play services complains to be out dated

And it's aparently not.
I've just compiled an APP with the latest google play services, which I've set on gradle as:
compile 'com.google.android.gms:play-services:+'
But when I open my APP, there's a huge warning.
And in LogCat:
W/GooglePlayServicesUtil﹕ Google Play services out of date. Requires 5208000 but found 5089070
If I open google play (pressing Actualizar button), I can see my Google Play services are totally updated.
This is happening on a genymotion emulator aswell as on a nexus 5 device.
I've tried things like:
compile 'com.google.android.gms:play-services:5.2.8'
However it complains:
Error:Could not find com.google.android.gms:play-services:5.2.8.
Required by:
:mobile:unspecified > :BaseGameUtils:unspecified
Any tips?
Fixed with
compile 'com.google.android.gms:play-services:5.0.89'
I've found out is that my Android Studio is downloading some version of google play services, which is not yet released on Google Play. That means that noone have that latest APK on their devices. So setting gradle to use an older version, will make the trick
Fixed with
For Gradle:
compile 'com.google.android.gms:play-services:5.0.77'
For Eclipse:
Add as library: https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
If above did not work, try to use older playstore service version of android playstore client.
https://dl-ssl.google.com/android/repository/google_play_services_4132530_r14.zip
https://dl-ssl.google.com/android/repository/google_play_services_4242030_r15.zip
https://dl-ssl.google.com/android/repository/google_play_services_4323030_r16.zip
https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
https://dl-ssl.google.com/android/repository/google_play_services_5089000_r19.zip
https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip

Categories

Resources