Wednesday, 5 April 2023

Android 14 SDK preview: INSTALL_FAILED_OLDER_SDK

I'm trying to set up the Android SDK preview in Android Studio using this guide.

Despite following the guide and using:

android {
    compileSdkVersion "android-UpsideDownCake"
    ...
    defaultConfig {
        minSdkVersion 21
        targetSdkVersion "android-UpsideDownCake"
    }
}

When I try to install this on an emulator running UpsideDownCake, I just get:

04/02 10:33:44: Launching 'app' on Pixel XL API UpsideDownCake.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_OLDER_SDK

List of apks:
[0] 'C:\Users\Me\StudioProjects\MyApp\app\build\intermediates\apk\devpro\debug\app-devpro-debug.apk'
The application's minSdkVersion is newer than the device API level.
Retry
Failed to launch an application on all devices

I don't know why it thinks that "The application's minSdkVersion is newer than the device API level" because the device is on UpsideDownCake.

Any ideas? I've tried rebuilding project, and invalidating caches and restarting... no use.



from Android 14 SDK preview: INSTALL_FAILED_OLDER_SDK

No comments:

Post a Comment