Android模拟器:安装错误:INSTALL_FAILED_VERSION_DOWNGRADE [英] Android Emulator: Installation error: INSTALL_FAILED_VERSION_DOWNGRADE
问题描述
我目前正在编译和测试一个小型的Android应用程序。
I am currently trying to compile and test a small Android Application.
我使用的Eclipse和安装SDK 4.2(API等级17)。 我给自己定
I am using Eclipse, and have SDK 4.2 (Api Level 17) installed. I've set
<uses-sdk android:targetSdkVersion="17" android:minSdkVersion="8" />
虽然我也尝试过不同的值(即17/17)。
although I've tried also different values (i.e. 17/17).
我不使用任何GoogleAPI功能,况且我使用的功能不可用的API级别8或至少我没有得到这方面的任何编译错误或警告。
I do not use any GoogleAPI functions, nor do I use functions that are not available in API Level 8. Or at least I do not get any compile errors or warnings in that regard.
当我编译该项目,并运行Android 2.2.1真实设备上运行的应用程序运行正常。然而,当我试图与Android 4.2运行在模拟器的应用程序(Android虚拟设备),空气污染指数17,我得到了以下错误:
When I compile the project and run it on a real device running Android 2.2.1 the Application runs fine. However when I try to run the application on an emulator (Android Virtual Device) with Android 4.2, Api Level 17 I get the following error:
[2012-12-10 21:10:29 - SoftKeyboard] Installation error: INSTALL_FAILED_VERSION_DOWNGRADE
[2012-12-10 21:10:29 - SoftKeyboard] Please check logcat output for more details.
[2012-12-10 21:10:29 - SoftKeyboard] Launch canceled!
不过的logcat是空的。我真的不知道,这是什么错误,甚至意味着...
Logcat however is empty. I have really no clue, what this error even means...
推荐答案
这意味着你要安装具有相同的packageName因为这是在模拟器上已安装的应用程序的应用程序,但一个你想安装具有较低的版本code(对于您的版本号的整数值)。
It means you're trying to install an app with the same packageName as an app that's already installed on the emulator, but the one you're trying to install has a lower versionCode (integer value for your version number).
您可能从的code,其中的版本号比您正在使用现在的副本较高的单独副本安装。在这两种情况下,无论是:
You might have installed from a separate copy of the code where the version number was higher than the copy you're working with right now. In either case, either:
-
卸载当前已安装的副本
uninstall the currently installed copy
或打开手机的设置>应用程序管理器,以确定安装的应用程序的版本号,并增加你的&LT;舱单安卓版code
要在AndroidManifest高。
or open up your phone's Settings > Application Manager to determine the version number for the installed app, and increment your <manifest android:versionCode
to be higher in the AndroidManifest.
或<一href="http://stackoverflow.com/a/13772620/632951">http://stackoverflow.com/a/13772620/632951
这篇关于Android模拟器:安装错误:INSTALL_FAILED_VERSION_DOWNGRADE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!