I have 2 same app (different versions) in Google Play Store but i want to Change their minSdkVersion and maxSdkVersion without Reuploading to Google Play Store, How can i do this ?
It is not possible to handle with app push. Sadly, Play store console doesn't have this feature
From play store console, you can just exclude devices based on vendor or ROM or System level properties.
It's not possible, minSdkVersion and maxSdkVersion stay inside your app.gradle file, you have to update them and regenerate your apk. Don't forget to update your versionCode otherwise apk will be rejected.
Related
This is quite strange situation. I have an android app in the market. Current version is 1.5.1 uploaded on 18th June. Google play is also displaying as last production release. This release has version code 25. yesterday I wanted to do another upload with version code 26 but I only saved as draft.
But google play shows me a notification that my release is live in the store
This release had 1.6 as release name but in the store is still 1.5.1. So I wanted to do another release with 1.6. now it tells me that "You need to use a different version code for your APK because you already have one with version code 26". I dont have this release draft also. It doesn't even appear anywhere. it is not also live in the store.
Does anybody have something similar? is it safe to make a new release with code 27 now? because Last release in the market is 25. so I will skip 1 number. will users receive update?
Yes, it's best to go change your version code to 27. Yes, users will receive the update.
If you can't find it, go to the build.gradle and set the version code and name inside the defaultConfig element
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
You can then upload it. Google only checks the gradle file to manage versions. But the users' client devices have no check. They will update it if the option is checked.
Google Play said : Warnings You imported an APK file that uses Google Play Services version 4030500. This APK file will only work with Android APIs level 9 or higher. You should not use this version of Google Play Services unless you have set the minSdkVersion value to 9 or higher in your manifest file. Your APK uses permissions that require privacy policies: (android.permission.READ_PHONE_STATE, android.permission.GET_ACCOUNTS)
From what you posted, go to build.gradle and try to change the minSdkVersion to level 9 like this:
minSdkVersion 9
I want to know suppose I upload a new app on Google Play with minSDKVersion to 14 with Version 1 and then later I want to make it compatible to Android 2.3+ so I will set the minSDKVersion to 9 in Version 1.1
Is this possible or Google Play does not allow you to decrese the value of minSDKVersion in updates release ?
Thanks in advance.
Yes, it is possible.All you have to do is increment your app's version code.
As far as I know you dont need to do anything in google play developer console, just modify the minSDKVersion in the manifest and use a higher version code
How set the android max sdk version on build.gradle at android studio.
I want do an app with two flavor, the first will run between version x~y and the second run at y+
Before on eclipse, in AndroidManifest.xml we have android:maxSdkVersion="y" but how it works on gradle?
You cannot set the maxSdkVersion in gradle. Actually, it is discourage by Google because of several issues. The main issue is that Google Play could decide to remove an app from a user device during an update if the system doesn't meet the maxSdkVersion specified in the app. For example, imagine you have a device with API Level 12 and you install an app with android:maxSdkVersion="12", then later you receive a system update that upgrades your android version to API Level 13...Google Play will uninstall your app.
Basically, you don't need this setting and you can easily ignore it, use the targetSDkVersion attribute and the minSdkVersion.
For your app "in flavour 1" with "version x~y" set the minSdkversion to x and the targetSdkVersion to y
now, for the app "in flavour 2", you will need to make sure that the sdk version don't get overlapped by the app "in flavour 1", set the min sdk version to "z". Otherwise, users with a device with api level "y" will never get to see this app in Google Play
Please note this.
Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the maxSdkVersion attribute during installation or re-validation. Google Play will continue to use the attribute as a filter, however, when presenting users with applications available for download.
https://developer.android.com/guide/topics/manifest/uses-sdk-element.html
I think accepted answer is not correct. Accepted answer says it is not possible to set maxSdkVersion - it is not true. It is still possible to use maxSdkVersion in android studio app/build.gradle. As described here https://developer.android.com/guide/topics/manifest/uses-sdk-element developer must notice warning and should understand why wants to do it. Nobody here take care that in play store you can provide several bundles/packages at once (per update/release) and one bundle can be targeted for new devices and another for old devices so it is fine second one limit by maxSdkVersion. One app bundle have versionCode e.g. 2xyz and for older devices is versionCode 1xyz and google always installs higher code when minSdkVersion allows it. So developer can purposely set maxSdkVersion and he know why hi is doing it.
Each our app update have 2 packages with different app/build.gradle...
For old devices
(maxSdkVersion has sense here)
defaultConfig {
minSdkVersion 16
maxSdkVersion 23
targetSdkVersion 30
versionCode 1058
versionName "4.4.0"
}
For new devices
(without limiting maxSdkVersion as googole warns that should not be used)
defaultConfig {
minSdkVersion 24
targetSdkVersion 30
versionCode 2058
versionName "4.4.0"
}
I have an Android app on Google Play market. I have added some features and also I want to change minsdkversion 5 to 8. Will Google play accept the new apk or reject due to increase in minsdkversion?
Google Play will accept it, just as long as the package name and the signing certificate are the same, doesn't matter if the minSDK, targetSDK or maxSDK is changed within the manifest.
it will accept and give you a warning letting you know how many users won't be able to update it.
The devices from API version <=7 will not get any update but the devices >=8 API version will get update as usual.