Ionic 5 Capacitor 3 App 未出现在 Android 8 上,但来自 android studio 的 运行 应用运行良好

Ionic 5 Capacitor 3 App not showing up on Android 8 but run app from android studio works well

我有一个带电容器 3.1.2 的 ionic 5.36.0 应用程序,angular 12.0.1 我的 SDK 是:

varables.gradle:

ext {
   minSdkVersion = 21
   compileSdkVersion = 30
   targetSdkVersion = 30
   androidxActivityVersion = '1.2.0'
   androidxAppCompatVersion = '1.2.0'
   androidxCoordinatorLayoutVersion = '1.1.0'
   androidxCoreVersion = '1.3.2'
   androidxFragmentVersion = '1.3.0'
   junitVersion = '4.13.1'
   androidxJunitVersion = '1.1.2'
   androidxEspressoCoreVersion = '3.3.0'
   cordovaAndroidVersion = '7.0.0'
}

我现在的问题是,当我在 Android 10 设备上从 Play 商店安装应用程序时,一切正常。当我在 android 8 设备上安装该应用程序时,它安装正确,但我无法在我的设备上找到或启动该应用程序。 如果我在 Android Studio 中 "运行 on device" 使用相同的 Android 8 phone 完成 应用运行良好,没有任何问题。你有什么想法吗?

这是应用程序:https://play.google.com/store/apps/details?id=com.rkm.neimosapp

好的,我发现我的 AndroidManifest.xml 有错误。

事情是这样的:

  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="@string/custom_url_scheme" />
  </intent-filter>

事情应该是这样的:

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