3
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"

defaultConfig {
    applicationId "com.abc.ege"
    minSdkVersion 16
    targetSdkVersion 25
    versionCode 3
    versionName "1.1.3"
    vectorDrawables.useSupportLibrary = true
}
}

Although my target sdk version is 25, when I upload the apk to play store, it says "not compatible with devices with android version 4.4 and over, where is the problem?

edit: app works fine on emulators and there is no hardware access in manifest file

Ege Kuzubasioglu
  • 5,991
  • 12
  • 49
  • 85

2 Answers2

2

I think you should lowerize targetSdkVersion to 24, as 25 (7.1) is not released yet.

Andrey Kopeyko
  • 1,556
  • 15
  • 14
  • My bad, can you explain the difference between compileSdkVersion and targetSdkVersion please? – Ege Kuzubasioglu Dec 03 '16 at 06:33
  • 1
    "compileSdkVersion specifies the Android API level Gradle should use to compile your app. This means your app can use the API features included in this API level and lower." https://developer.android.com/studio/build/index.html – Andrey Kopeyko Dec 03 '16 at 12:02
2

Solved the issue. Looks like an external library's android manifest file maxSDK is set to 19.

Ege Kuzubasioglu
  • 5,991
  • 12
  • 49
  • 85