Android APK和Debug安装该应用的多个版本

时间:2021-03-30 18:23:58

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.

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

1 个解决方案

#1


-1  

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

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

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

#1


-1  

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

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

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