Android Studio - 应用程序安装失败

标签 android android-studio android-studio-2.3 android-instant-run

我在 android studio 2.3 上启用了即时运行。当我想在我的设备上运行该应用程序时出现此错误:

Installation failed with message . It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

enter image description here

点击确定后我得到这个:

Session 'app':Error Installing APKs

我检查过 thisthis但它们都没有帮助我,因为我确实需要启用 instant run(否则我正在处理的项目会花费很多时间)。 我的设备:华硕 Zenfone 2 Laser ZE500KL

最佳答案

据我所知,这个问题可能有两个原因:

  1. 首先是您的应用已经安装了相同的包名但证书不同,要解决此问题,请检查您的手机是否已经安装了该应用,然后将其卸载并尝试安装新的。

  2. 第二个原因可能是您尝试安装的应用程序的最低 SDK 版本高于设备的 Android 版本。要解决此问题,请确保您项目的“build.gradle”中定义的最低 SDK 版本低于您设备的 Android 版本。

希望对您有所帮助!

关于Android Studio - 应用程序安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44740279/

相关文章:

java - 使用 Android Studio 在 Save 上运行单元测试

android - 在 Android Studio 2.3 中使用缓存

android - Admob 广告无法在 Android 上展示,但可以在 iOS 上展示 -- Flutter

android - DialogPreference 的自定义属性

java - 如何在 Android Studio 中使用 ListView 修复 'Incorrect Onclick'

android - 在 Android Studio 3.3 Canary 3 Kotlin 项目上找不到符号 DataBindingComponent

android - 即使将 "with only the traditional scheme"设置为 false 后也无法签署 apk 'v2SigningEnabled'

android - 创建后如何更改Android Studio项目的名称?

android - 自动滚动以重新定位键盘上方的文本输入

android - 如何在 SQLite WHERE 子句中包含 bool 值