当前位置: 首页 > 知识库问答 >
问题:

我的应用程序在Android9上运行良好,但在Android10上却一直崩溃

轩辕啸
2023-03-14
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.location.gps" />

<application
    android:allowBackup="true"
    android:fullBackupContent="@xml/backup_descriptor"
    android:usesCleartextTraffic="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:name="com.shops.nicofoods.MyApplication"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <uses-library android:name="org.apache.http.legacy" android:required="false" />
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id" />

    <activity
        android:name="com.facebook.FacebookActivity"
        android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />

    <meta-data
        android:name="com.google.android.gms.wallet.api.enabled"
        android:value="true" />

    <activity
        android:name="com.shops.nicofoods.activities.WelcomeScreenActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.SplashActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <!-- Firebase Notifications -->
    <service android:name="com.shops.nicofoods.fcm.MyFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <service android:name="com.shops.nicofoods.fcm.MyFirebaseInstanceIDService">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>

    <!--<activity-->
        <!--android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"-->
        <!--android:launchMode="singleTask">-->
        <!--<intent-filter>-->
            <!--<action android:name="android.intent.action.VIEW" />-->

            <!--<data android:scheme="${applicationId}.braintree" />-->

            <!--<category android:name="android.intent.category.DEFAULT" />-->
            <!--<category android:name="android.intent.category.BROWSABLE" />-->
        <!--</intent-filter>-->
    <!--</activity>-->
    <activity
        android:name="com.shops.nicofoods.HomeActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="adjustNothing" />

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/p_apikey" />
    <meta-data
        android:name="com.razorpay.ApiKey"
        android:value="rzp_live_uwWRXIWmWvbvej"
        />
    <!-- <service -->
    <!-- android:name=".service.OrderStatusService" -->
    <!-- android:exported="false" /> -->

    <activity
        android:name="com.shops.nicofoods.activities.LoginActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.AddCardActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.OtpActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.MobileNumberActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.SignUpActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.ForgotPasswordActivity"
        android:label="@string/forgot_password"
        android:parentActivityName="com.shops.nicofoods.activities.LoginActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.HotelViewActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.ChangePasswordActivity"
        android:label="Change Password"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.FavouritesActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.RecommendedListActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.EditAccountActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.SetDeliveryLocationActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.SaveDeliveryLocationActivity"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.ManageAddressActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.AccountPaymentActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.OrdersActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.FilterActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.ViewCartActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.PastOrderDetailActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.OtherHelpActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="adjustResize" />
    <activity
        android:name="com.shops.nicofoods.activities.NotificationActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.PromotionActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.CurrentOrderDetailActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.AddMoneyActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustNothing"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name="com.shops.nicofoods.activities.WalletActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />

    <meta-data
        android:name="io.fabric.ApiKey"
        android:value="3aef7a5b05836cf8166f23c95e43c52517bee917" />

    <activity
        android:name="com.shops.nicofoods.activities.ResetPasswordActivity"
        android:screenOrientation="portrait" />


    <activity
        android:name="com.shops.nicofoods.activities.PaymentActivity"
        android:screenOrientation="portrait" />
    <activity
        android:name="com.shops.nicofoods.activities.SecretKeyActivity"
        android:screenOrientation="portrait" />

    <!--<provider-->
        <!--android:name="android.support.v4.content.FileProvider"-->
        <!--android:authorities="${applicationId}.fileprovider"-->
        <!--android:exported="false"-->
        <!--android:grantUriPermissions="true">-->
        <!--<meta-data-->
            <!--android:name="android.support.FILE_PROVIDER_PATHS"-->
            <!--android:resource="@xml/file_paths" />-->
    <!--</provider>-->

    <activity
        android:name="com.shops.nicofoods.activities.ProductDetailActivity"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="adjustPan"
        android:parentActivityName="com.shops.nicofoods.activities.HotelViewActivity"
    />
</application>

共有1个答案

缪嘉志
2023-03-14
2020-01-28 17:59:45.028 1684-1684/? E/FirebaseInstanceId: Failed to start service while in background: java.lang.IllegalStateException: Not allowed to start service Intent {
 类似资料: