APK installation failed after updating target SDK for android P

I updated the SDK for the SDK and the target version of the SDK for android P, but after updating the application I can’t install it, a pop-up window appears with the same error even after uninstalling the old version of APK from my device.

My build settings:

compileSdkVersion 'android-P'
    defaultConfig {
        applicationId "com.my.app"
        minSdkVersion 15
        targetSdkVersion 'P'
        versionCode 31
        versionName "1.2.14"
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true
    }

Error popup

+4
source share
2 answers

What I understood is that you cannot target the developer preview version targetSdkVersionon either a device or an emulator with a release version. If you really need to install targetSdkVersion, you need to run it in the device / emulator with the launch of the android-Pdeveloper preview.

+4
source

Source: https://habr.com/ru/post/1694677/


All Articles