3

Is it possible to update my app after changing the Google Play service library in the build.gradle?

I changed it from:
compile 'com.google.android.gms:play-services:8.3.0'
to
compile 'com.google.android.gms:play-services-ads:8.4.0'

After changing the Play Service version, and installing on my phone, android studio gave me a warning saying that I can't update the existing application, and I must uninstall it. So, can I still release the new APK in the developer console, and will it cause issues?

Rohit Suthar
  • 2,635
  • 1
  • 22
  • 27
Ruchir Baronia
  • 7,406
  • 5
  • 48
  • 83

3 Answers3

2

After changing the Play Service version, and installing on my phone, android studio gave me a warning saying that I can't update the existing application, and I must uninstall it.

its give you warning because in you device you have signed APK and you are trying to update it using debug apk. so generate signed apk(with same certificate whatever you have used previously) then update app in device.

So, can I still release the new APK in the developer console, and will it cause issues?

in above process there is no issue then you can upload same signed apk on Google Play Store


assume you know what is signed & debug apk and how to generate both


EDITED:

Gradle is a build system. i am not able to explain it in simple way but you can read more detail of Gradle in this answer and for more about build system and Build System Overview

Community
  • 1
  • 1
Dhaval Parmar
  • 18,812
  • 8
  • 82
  • 177
0

I suspect that what happened here is that your signing key doesn't match. (I.E. if you downloaded your release-key version from the Play store while using the debug key with Android Studio) Changing Play Services should not have this impact.

dagalpin
  • 1,297
  • 8
  • 8
0

You can only update your application to the Play Store if it's signed by the same old key that you used for signing the application first time.

As you probably already know, when you compile application to run on your device for testing, it's signed with the debug key.

If you already have your application installed on your phone that's signed with production key and you try to re-install application that's signed with debug key then it will not work. You will first have to uninstall old application and then reinstall.

To sum it up, you can only release new version if you sign your application with the old production key that you have. In this case, application will be updated on users phone without them uninstall your old application.

Sharjeel
  • 15,588
  • 14
  • 58
  • 89