错误:在包“ android”中找不到属性“ appComponentFactory”的资源标识符

时间:2019-07-02 06:13:09

标签: android node.js cordova ionic-framework

这是我的离子信息

  

√收集环境信息-完成!

     

离子:

     离子(离子CLI):4.2.1   (C:\ Users \ DRAGONBALL \ AppData \ Roaming \ npm \ node_modules \ ionic)Ionic   框架:离子角3.5.0 @ ionic / app-scripts:3.2.4

     

科尔多瓦:

     

cordova(Cordova CLI):8.1.1(cordova-lib@8.1.0)科尔多瓦   平台:安卓6.2.3 Cordova插件:否   列入白名单的插件(共12个插件)

     

系统:

     

Android SDK工具:25.2.5(D:\ Backupdata \ Android \ sdk)NodeJS
  :v8.9.1(C:\ Program Files \ nodejs \ node.exe)npm:   6.9.0操作系统:Windows 7

我尝试了similar post中提到的解决方案,但没有任何效果。

这里是来自build \ intermediates \ manifests \ full \ debug \ AndroidManifest.xml的清单

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.omkarfatale.predictor"
android:hardwareAccelerated="true"
android:versionCode="10900"
android:versionName="1.9" >

<uses-sdk
    android:minSdkVersion="16"
    android:targetSdkVersion="26" />

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" /> <!-- Required by older versions of Google Play services to create IID tokens -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<application
    android:appComponentFactory="androidx.core.app.CoreComponentFactory"
    android:hardwareAccelerated="true"
    android:icon="@mipmap/icon"
    android:label="@string/app_name"
    android:supportsRtl="true" >
    <activity
        android:name="com.omkarfatale.predictor.MainActivity"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
        android:label="@string/activity_name"
        android:launchMode="singleTop"
        android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
        android:windowSoftInputMode="adjustResize" >
        <intent-filter android:label="@string/launcher_name" >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.gae.scaffolder.plugin.FCMPluginActivity"
        android:exported="true"
        android:launchMode="singleTop" >
        <intent-filter>
            <action android:name="FCM_PLUGIN_ACTIVITY" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

    <service android:name="com.gae.scaffolder.plugin.MyFirebaseMessagingService" >
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <service android:name="com.gae.scaffolder.plugin.MyFirebaseInstanceIDService" >
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>

    <receiver
        android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
        android:enabled="true"
        android:exported="false" >
    </receiver>
    <receiver
        android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
        android:enabled="true"
        android:exported="true"
        android:permission="android.permission.INSTALL_PACKAGES" >
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
    </receiver>

    <service
        android:name="com.google.android.gms.measurement.AppMeasurementService"
        android:enabled="true"
        android:exported="false" />
    <service
        android:name="com.google.android.gms.measurement.AppMeasurementJobService"
        android:enabled="true"
        android:exported="false"
        android:permission="android.permission.BIND_JOB_SERVICE" />
    <service
        android:name="com.google.firebase.components.ComponentDiscoveryService"
        android:exported="false" >
        <meta-data
            android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
            android:value="com.google.firebase.components.ComponentRegistrar" />
        <meta-data
            android:name="com.google.firebase.components:com.google.firebase.iid.Registrar"
            android:value="com.google.firebase.components.ComponentRegistrar" />
    </service>
    <!--
         FirebaseMessagingService performs security checks at runtime,
         but set to not exported to explicitly avoid allowing another app to call it.
    -->
    <service
        android:name="com.google.firebase.messaging.FirebaseMessagingService"
        android:exported="false" >
        <intent-filter android:priority="-500" >
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

    <receiver
        android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
        android:exported="true"
        android:permission="com.google.android.c2dm.permission.SEND" >
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        </intent-filter>
    </receiver>

    <provider
        android:name="com.google.firebase.provider.FirebaseInitProvider"
        android:authorities="com.omkarfatale.predictor.firebaseinitprovider"
        android:exported="false"
        android:initOrder="100" />

    <activity
        android:name="com.google.android.gms.common.api.GoogleApiActivity"
        android:exported="false"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" />

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
</application>

让我知道是否需要更多信息。

谢谢。

0 个答案:

没有答案