9

Today I started to get this annoying message (when installing APK outside the Google Play):

This app was built for an older version of Android and doesn't include the latest privacy protections

Google play message

What is this message? What should we do?

I believe that it's because of the targetSdkVersion but can't find anything about it.

^^^^ UPDATE ^^^^

It turns out that when I changed targetSdkVersion from 24 to 26 - the message disappeared.

2
  • have u found any solution for this? then pls help us. Commented Oct 3, 2022 at 9:52
  • it kept warn after me changed the version. And no answer here had helped. Then i just uninstalled /installed the app. Not a case for apps with valuable data thogh Commented Nov 2, 2024 at 14:25

4 Answers 4

4

It seems that Google started to enforce using minimum targetSdkVersion of 26 for APK installed outside the Google Play Store.

So you'll have to updated your targetSdkVersion in the AndroidManifest.xml file in your project.

Sign up to request clarification or add additional context in comments.

3 Comments

Playing with Android 14 Beta 3 and targetSdkVersion is minimum at '28' now.
I have a targetSdkVersion is 28 eventhough am getting this error. I think it is expecting the latest version 33 as mentioned in this link developer.android.com/google/play/requirements/target-sdk. Can anyone confirm?
manifest or gradle?
2

For those who are having this problem even after updating the targetSdk to the latest version, make sure your "compileSdk" is written correctly. I upgraded my Gradle and the "compileSdkVersion" was deprecated. After changing it to compileSdk, the pop-up stopped appearing.

Change

compileSdkVersion

To

compileSdk

Comments

1

I also had your problem To fix the problem, just put your target SDK on the latest version

for example

android {
namespace 'ir.galaxycell.kako'
compileSdk 33

buildFeatures{
    dataBinding true
}

defaultConfig {
    applicationId "ir.galaxycell.kako"
    minSdk 21
    targetSdk 33
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

1 Comment

looks like this is still working mid-2025: take a closer look at the compileSdk and targetSdk position. this was working for me ( api 36 )
0

For SDK 35, Must define the targetSdkVersion, like this

android {
    defaultConfig {
        compileSdk 35
    }

    defaultConfig {
       
        minSdkVersion 22
        targetSdkVersion 31
...}

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.