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

查看:99
本文介绍了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文件.您需要将以下代码仅应用于启动活动,而不是针对每个活动.

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天全站免登陆