I have an application that is in google play store and it uses targetSdkVersion 28 and compileSdkVersion 29 and also minSdkVersion 21 but when I go to my application page in playstore it says it isn't compatible with my Samsung A30 running android 10.
What is the problem??
I would appreciate if you can help me.
This is because you have set your targetSdkVersion to 28 (Android Pie) due to which you are not able to install it on your Samsung device with Android 10.
targetSdkVersion specifies the highest possible android API level that
the app will support.
You have just provided the support of Android 10 in compileSdkVersion and not for your targetSdkVersion.
Set it to:
targetSdkVersion 29
compileSdkVersion 29
Related
This question already has answers here:
Can I run my app on API 23 if target SDK version I used is 21
(3 answers)
Will my application be visible to devices higher than my targetSdkVersion in Google Play Store?
(5 answers)
Closed 4 years ago.
Below is build.gradle
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
minSdkVersion 18
targetSdkVersion 21
versionName "5.3"
..
}
But I am able to run the App on Android OREO ( API version 26 or 27 )
How this can be possible?
Do I need to change the target SDK version to 26 or 27?
Obviously you will able to run your app in oreo.
But as your targetSdkVersion is 21,you will be not able to use new features in Oreo or your app might crash if you use a foregroundService.
I am trying to upload my instant app with targetSdkVersion 25 and my installed app is also with targetSdkVersion 25.
When I try to upload my instant app on play console, I am getting the following error,
I do not see in documentation that it is mandatory to support targetSdkVersion 26. What am I missing here ?
I cannot update my targetSdkVersion to 26 since targetting for my installable and instant app should be same.
My installable app must have targetSdkVersion of 25 for now due to a dependency. Can I upload my instant app with targetSdkVersion of 25 ?
Read Prepare your development environment.
Android SDK Build-Tools 26.x or higher
Android SDK Platform Tools 25.x or higher
Android SDK Tools (latest)
You should set
compileSdkVersion 27
buildToolsVersion '27.0.3'
And
defaultConfig {
targetSdkVersion 26
}
As Android evolves with each new version, some behaviors and even
appearances might change. However, if the API level of the platform is
higher than the version declared by your app's targetSdkVersion, the
system may enable compatibility behaviors to ensure that your app
continues to work the way you expect.
For those who are still wondering about this issue. Google imposed a restriction that both Instant app and install-able app should target at least 26.
I'm a little confused! I made an Android app which has these lines of code in the Gradle file:
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.ayech0x2.navigationbarforallactivitites"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
So as you see the minimum version of Android is Lolipop after that I used an app called Install APKs to see my apk pieces of information I found that the minimum API level is 3 (Cupcake)! what did this mean? What's the difference between minSdkVersion and minimum API level?
Thank you very much for your time and assistance in this matter.
The minSdkVerison and minimum API level is same. You cannot install the apk on an Android OS of api level below minimum api level. the apk checking tool may have some problem in checking the details.
minSdkVersion and Minimum API Level refers the same thing. If you are specifying the minSdkVersion as 21, the app will not get installed on the device with API level below 21.
Something might be wrong with the app checking the minimum API level of your app.
You can verify it yourself by trying to install the app in the devices below the specified API level.
minSdkVersion: is the minimum version of the Android OS required to run your application.
Minimum API Level: is also the same as minSdkVersion
I think which app you used Install APKs isn't working properly.
I have buyed a Android app but Author not respons more.
App was created to this versions:
Android 4.0, Android 4.0.3, Android 4.0.4, Android 4.1.x, Android 4.2.x, Android 4.3.x, Android 4.4.x
Now we also have 5x and 6x so my questions are:
How can i do it so it works with newest version to Android?
I have full source code for this app.
Change your build.gradle file configuration to the Android API level you're looking for.
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.your.package"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
}
API:
19 - 4.4 - 4.4.x
21 - 5.0 22 - 5.1
23 - 6.0 - 6.0.1
24 - (Android Nougat)
Source
You will need to update the build.gradle to target newer versions (although the app may run fine on newer versions without it).
Moreover, you should be updating your code to explicitly request permissions for Marshmallow and Nougat, as outlined here.
Configure your build.gradle, and update targetSdkVersion to android version which you wanted.
I am using Android Studio . when I uploaded my app on google play store it supports all the versions started from foryo (7) to kitkat 4.4 ( 20 )
signingConfigs {
}
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 7
targetSdkVersion 18
versionCode 1
versionName '1.0'
}
It will support because targeted Version is not the maximum version to support.
android:minSdkVersion="7" below API level 7 it will not work and android:targetSdkVersion="18" it means it can be targeted till API level 18 it will work on above API level 18 also, Android Improves functionality version to Version which means it will add some new features to the older version. That is why your app works on newer version too.