React Native - java.lang.SecurityException:com.app / com.app.MainActivity UserHandle {0}不是启动器活动

时间:2017-07-04 11:02:15

标签: android react-native android-securityexception

该应用从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原生的新手。请,任何可以帮助解决这个问题。 谢谢。

0 个答案:

没有答案