0

该应用程序正在从 Google Firebase 崩溃报告工具获取 SecurityException 报告。这是崩溃的错误日志:

Exception java.lang.SecurityException: com.veta/com.veta.MainActivity UserHandle{0} is not a launcher activity
android.os.Parcel.readException (Parcel.java:1599)
android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:188)
android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:140)
android.content.ContentProviderProxy.insert (ContentProviderNative.java:476)
android.content.ContentResolver.insert (ContentResolver.java:1280)
android.content.AsyncQueryHandler$WorkerHandler.handleMessage (AsyncQueryHandler.java:96)
android.os.Handler.dispatchMessage (Handler.java:111)
android.os.Looper.loop (Looper.java:207)
android.os.HandlerThread.run (HandlerThread.java:61)

这是我的 AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-feature android:name="android.hardware.location.gps" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-feature android:name="android.hardware.camera" android:required="false"/>
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
    <permission
      android:name="${applicationId}.permission.C2D_MESSAGE"
      android:protectionLevel="signature" />
      <uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" />
      <uses-permission android:name="android.permission.VIBRATE" />

    <application
      android:name=".MainApplication"
      android:allowBackup="true"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:theme="@style/AppTheme">
      <activity
        android:name=".SplashActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustResize|stateAlwaysHidden|adjustPan"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
      <activity 
        android:name=".MainActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.INFO" />
          </intent-filter>
        <intent-filter android:label="filter_feed">
          <action android:name="android.intent.action.VIEW" />
          <category android:name="android.intent.category.DEFAULT" />
          <category android:name="android.intent.category.BROWSABLE" />
          <data android:scheme="com.veta" />
        </intent-filter>
      </activity>
</application>

我从 Sony E5663 设备收到此错误。我查看了在 StackOverflow 上提出的其他问题,但这无助于解决我的问题。我是 React Native 的新手。拜托,任何人都可以帮助解决这个问题。谢谢。

4

0 回答 0