【问题标题】:How to fix app not installed [Android Studio]如何修复未安装的应用程序 [Android Studio]
【发布时间】:2020-01-09 21:31:31
【问题描述】:

问题

App not installed 在安装签名 apk 时显示。 该应用程序将首次安装没有任何问题,稍后如果我卸载并尝试重新安装相同的 apk,它会显示 App not installed

尝试了以下方法

  • 仅使用 V1 签名尝试过
  • 仅尝试使用 V2 签名
  • 尝试使用 V1 和 V2 签名
  • 将构建变体更改为Release
  • 在 3 种不同的设备上试用过
  • 从设备(所有用户)和发布文件夹中卸载旧版本
  • 删除了智能手机的缓存。

注意:

上周创建密钥库Key was created with errors: Picked up _JAVA_OPTIONS: -Xmx512M 时出现错误,但问题已解决。但是通过从环境变量中删除_JAVA_OPTIONS 解决了它(https://stackoverflow.com/a/57556572/6088883) 我想在这之后就开始了。

代码没问题

我 100% 确定代码中没有问题因为我尝试为基本登录活动应用程序制作签名 apk。没有改变任何一行代码。但结果是一样的

尝试了以下线程

  1. How to fix App not installed error in Android
  2. How to Fix Android App Not Installed Error?
  3. App not installed
  4. Is there any way to fix APP not installed?(完全相同的问题)

他们都没有解决问题

临时修复

唯一可行的方法是禁用 Google Play Protect(这不是正确的修复方法)

【问题讨论】:

  • 您是否要求任何敏感权限?像管理应用程序?
  • 否,只使用发送短信的权限。 Here 是我的 Manifest.xml
  • SMS 权限可能不会授予恶意应用程序,无论清单上说什么。
  • @MayuriK 不,我会检查并通知您

标签: android android-studio android-studio-3.0


【解决方案1】:

只需尝试在清单文件中添加 Action VIEW。 之后,重新安装应用程序即可解决问题。

<activity
    android:name=".MyActivity"
    android:screenOrientation="portrait"
    android:label="@string/app_name">

    <intent-filter>

         // add this line of code in application tag  only single line of code will also work
       <action android:name="android.intent.action.VIEW" />

    </intent-filter>


</activity>

【讨论】:

    【解决方案2】:

    如果为多个用户安装了应用程序,也会发生这种情况。您应该为所有用户卸载。有两种方法可以做到这一点。

    • 从终端/外壳:adb uninstall 或 adb uninstall [package_name]

    • 为所有用户卸载(您需要是管理员用户):

      1. 打开设置,然后打开应用程序
      2. 打开应用信息
      3. 打开溢出菜单(3 个垂直点)
      4. 为所有用户选择卸载。

    【讨论】:

    • 我已经试过了。请参阅我的问题中的尝试了以下操作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-19
    • 1970-01-01
    相关资源
    最近更新 更多