【问题标题】:How can I force installation of Android app from Android Studio 4.1.3? [duplicate]如何从 Android Studio 4.1.3 强制安装 Android 应用程序? [复制]
【发布时间】:2021-04-10 11:48:36
【问题描述】:

Android Studio“有帮助”跳过安装并重新启动手机上的内容

04/10 13:47:09: Launching 'app' on Physical Device.
App restart successful without requiring a re-install.

什么是谎言(因为应用程序根本没有安装)并且可以预见会立即失败:

Could not identify launch activity: Default Activity not found
Error while Launching activity

如何实际安装我的应用程序?

从手机上卸载应用程序无法更改任何内容。

重启 Android Studio 和删除缓存也失败了。

断开和连接电话相同。

【问题讨论】:

标签: android android-studio reinstall


【解决方案1】:

更改<category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.LAUNCHER" />

这将解决问题,因为并非所有版本的模拟器都接受 DEFAULT

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-19
    相关资源
    最近更新 更多