Android APK 和 Debug 安装多个版本的应用程序 [英] Android APK and Debug install multiple versions of the app

查看:40
本文介绍了Android APK 和 Debug 安装多个版本的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调试或什至在 APK 最终版本中时,应用会安装 5 个不同版本的应用.它们在应用程序抽屉中显示为同一应用程序的 5 个副本,但是当我打开其中一个时,它是旧版本.已安装的应用程序之一是最新的.当我卸载这些副本之一时,它们都会立即卸载.

When I'm debugging or even in a final APK release, app installs 5 different versions of the app. They appear in the app drawer as 5 copies of the the same app but when I open one of them, it a old version. One of the installed apps are current. When I uninstall one of these copies all of them uninstall at once.

推荐答案

您需要处理 Android Manifest 文件.您需要将以下代码仅用于启动 Activity,而不是每个 Activity.

You need to take care of Android Manifest file. You need to put following code to only startup activity not on every activity.

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

这篇关于Android APK 和 Debug 安装多个版本的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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