Android的工作室0.8.2错误"失败[INSTALL_FAILED_OLDER_SDK] QUOT;试图在手机上加载应用程序时, [英] Android Studio 0.8.2 error "Failure [INSTALL_FAILED_OLDER_SDK]" when trying to load app on phone

查看:230
本文介绍了Android的工作室0.8.2错误"失败[INSTALL_FAILED_OLDER_SDK] QUOT;试图在手机上加载应用程序时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在建设过程中,我的手机上调试应用程序,我不断收到错误失败[INSTALL_FAILED_OLDER_SDK]当我试图将一个测试版本到我的手机。它的默认设置目标SDK为L,但我设置的最低SDK级到9覆盖大多数设备。我试图加载的应用程序的设备是银河S3运行4.4.4(这是我所知道的是API 19)。

I am in the process of building and debugging an app on my phone and I keep getting the error "Failure [INSTALL_FAILED_OLDER_SDK]" when I try to push a test build to my phone. It by default set the target SDK to L but I set the minimum SDK level to 9 to cover the most devices. The device I'm trying to load the app on is a Galaxy S3 running 4.4.4 (which I know is API 19).

下面是defaultConfig从我的build.gradle

Here is the defaultConfig from my build.gradle

    defaultConfig {
        applicationId "com.tg94.intcalc"
        minSdkVersion 9
        targetSdkVersion "L"
        versionCode 1
        versionName "1.0"
    {

当我去看看我的Andr​​oidManifest.xml虽然,这是它显示了

When I go and look at my AndroidManifest.xml though, this is what it shows

    <uses-sdk
        android:minSdkVersion="L"
        android:targetSdkVersion="L" />

当我尝试编辑这个(我试过在Visual Studio 2013,记事本+ +和编辑只是计划Windows记事本),我注意到安卓的minSdkVersion 总是变回为L即使我改变了它并将其保存到API级别9.是否有任何建议,我应该尝试解决这一问题?

When I try to edit this (I tried editing in Visual Studio 2013, Notepad++ and just plan Windows Notepad), I noticed the android:minSdkVersion always changes back to L even though I changed it and saved it to API level 9. Is there any suggestions I should try to fix this?

编辑:刚刚更新的Andr​​oid Studio来0.8.2,但问题仍然presists

Just updated Android Studio to 0.8.2 but the problem still presists

推荐答案

目前,针对第l开发商preVIEW应用程序的无法的安装在没有它的设备 - 的SDK力的minSdkVersion 为L时, targetSdkVersion 为L的是在AOSP跟踪器关联的问题。

Currently, applications that target the L developer preview cannot be installed on devices that do not have it -- the SDK forces minSdkVersion to L when targetSdkVersion is L. This is the associated issue in the AOSP tracker.

虽然有解决这一限制一些黑客,如描述<一个href=\"http://www.reddit.com/r/androiddev/comments/297xli/howto_use_the_v21_support_libs_on_older_versions/\"相对=nofollow>这里,他们基本上涉及愚弄SDK以为L不是开发商preVIEW。

Although there are some hacks around this limitation, such as described here, they basically involve fooling the SDK into thinking L is not a developer preview.

如果你对于L开发,那么你应该使用一个L设备(或模拟器)来测试应用程序。否则,使用 targetSdkVersion 19来代替。

If you're developing for L, then you should use an L device (or emulator) to test the app. Otherwise, use targetSdkVersion 19 instead.

这篇关于Android的工作室0.8.2错误&QUOT;失败[INSTALL_FAILED_OLDER_SDK] QUOT;试图在手机上加载应用程序时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆