Android APK and Debug install multiple versions of the app

倾然丶 夕夏残阳落幕 提交于 2019-12-11 14:57:41

问题


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.


回答1:


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>


来源:https://stackoverflow.com/questions/27633008/android-apk-and-debug-install-multiple-versions-of-the-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!