To try the new features of API 21
, I created a new project with a basic activity.
The SDK version is requested as follows in the AndroidManifest.xml: <uses-sdk android:minSdkVersion="L" android:targetSdkVersion="L"/>
.
I have a virtual device created with API 21
, as shown here.
However, when building and deploying my project, after selecting my running virtual device in the chooser window, Android Studio uploads the apk, tries to install it and finally abort with this error:
Failure [INSTALL_FAILED_OLDER_SDK]
I tried again with lower minSdkVersion
values as advised in this related question, but even targeting minSdkVersion="4"
didn't change the output. Moreover, I believe my emulator uses the latest API version, and this should allow me to develop targetting minSdkVersion="L"
...
- What could be the cause of this problem?
- Is there a solution that would still allow me to use latest API?