简体   繁体   中英

App Android doesn't work in all the kind of device

I developed Android app using Android Studio 2.2, and it works perfectly on my phone (Samsung galaxy j2 android 5.1.1). But when I try to use it from google play in other device (Samsung galaxy s3 android 4.4.4), they say this app is not compatible with this device.

What I should change for the app can work in all versions of Android smartphone?

build.gradle

compileSdkVersion 24
buildToolsVersion "23.0.3"
defaultConfig {
    applicationId "names.com.name"
    minSdkVersion 21
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}

You need to change minSdkVersion to some lower API.

21 is for Android 5.

minSdkVersion represent that Android devices which are equal to greater than the specified API can only install that app.

Its because you set the minSdkVersion 21. for that it cannot be installed in lower then 21 sdk versions . Check out this link to see the android versions and API levels. If you want to install your app in lower api versions then u have to put that API level in minSdkVersion .

如果系统的 API 级别低于minSdkVersion属性中指定的值,Android 系统将阻止用户安装应用程序。通过定位API 15及更高版本,您的应用程序将支持 97% 的设备。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM