r***@qq.com
r***@qq.com
  • 发布:2021-10-26 17:31
  • 更新:2021-10-26 17:31
  • 阅读:510

Android 離線打包 集成unipush Google渠道後,build app時報錯

分类:HTML5+

Android studio報錯信息:Type com.igexin.push.core.e.a is referenced as an interface from com.igexin.push.core.e.b.

另外離線打包文檔提到unipush google渠道另外還需在配置表添加以下內容:

但aps-unipush-gp-release.aar包中並沒有com.igexin.sdk.PrivacyActivity,所以配置清單中我屏蔽了,aps-unipush-gp-release.aar版本為Android-SDK@3.2.9.81057_20210927

離線集成包列表:

配置表如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.everesthouse.kiddieworld">

<!-- Push(推送)-个推  begin -->  
<uses-permission android:name="android.permission.INTERNET" />  
<uses-permission android:name="android.permission.READ_PHONE_STATE" />  
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />  
<uses-permission android:name="android.permission.WAKE_LOCK" />  
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />  
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  
<uses-permission android:name="android.permission.VIBRATE" />  
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />  
<uses-permission android:name="android.permission.CALL_PHONE" />  
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />  

<!--<uses-permission android:name="getui.permission.GetuiService.com.everesthouse.kiddieworld" />  
<permission  
    android:name="getui.permission.GetuiService.com.everesthouse.kiddieworld"  
    android:protectionLevel="normal" />-->  
<!-- Push(推送)-个推    end -->  

<!-- Share(分享)  begin -->  
<!-- Share - 新浪微博分享 -->  
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />  

<!-- Share - 腾讯微博分享 -->  

<!-- Share - 微信分享 -->  
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />  

<!-- 蓝牙 ibeacon权限-->  
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />  
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />  
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />  
<uses-permission android:name="android.permission.BLUETOOTH" />  

<!-- 基座删除的部分权限 -->  
<uses-permission android:name="android.permission.GET_TASKS" />  
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />  

<uses-feature android:name="android.hardware.camera" android:required="false"/>  
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>  

<uses-permission android:name="android.permission.CAMERA" />  

<!--<uses-permission android:name="android.permission.RECORD_AUDIO" />-->  

<uses-permission android:name="android.permission.FLASHLIGHT" />  

<uses-permission android:name="android.permission.READ_APP_BADGE"/>  

<uses-permission android:name="com.sec.android.provider.badge.permission.READ" />  
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" />  

<uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE" />  
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE"/>  
<uses-permission android:name="com.sonyericsson.home.action.UPDATE_BADGE"/>  

<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/>  
<uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS"/>  
<uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS"/>  

<uses-feature android:name="android.hardware.location.gps" android:required="false"/>  
<uses-feature android:name="android.hardware.location" android:required="false"/>  
<uses-feature android:name="android.hardware.location.network" android:required="false"/>  
<uses-feature android:name="android.hardware.telephony" android:required="false"/>  
<uses-feature android:name="android.hardware.wifi" android:required="false"/>  
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>  
<uses-feature android:name="android.hardware.fingerprint" android:required="false"/>  

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:required="false"/>  
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" android:required="false"/>  

<!-- android 9.0上使用前台服务,需要添加权限 -->  
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />  

<application  
    android:usesCleartextTraffic="true"  
    android:name="io.dcloud.application.DCloudApplication"  
    android:allowClearUserData="true"  
    android:icon="@drawable/icon"  
    android:label="@string/app_name"  
    android:largeHeap="true"  
    tools:ignore="GoogleAppIndexingWarning"  
    tools:replace="android:appComponentFactory"  
    android:appComponentFactory="whateverString"  
    android:networkSecurityConfig="@xml/network_security_config"  
    android:requestLegacyExternalStorage="true">  
    <activity  
        android:name="com.everesthouse.kiddieworld.FCMActivity"  
        android:configChanges="orientation|keyboardHidden|keyboard|navigation"  
        android:label="@string/app_name"  
        android:launchMode="singleTask"  
        android:hardwareAccelerated="true"  
        android:theme="@style/TranslucentTheme"  
        android:screenOrientation="user"  

        android:windowSoftInputMode="adjustResize" >  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />  

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

    <activity  
        android:name="io.dcloud.PandoraEntryActivity"  
        android:launchMode="singleTask"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard"  
        android:hardwareAccelerated="true"  
        android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"  
        android:screenOrientation="user"  
        android:theme="@style/DCloudTheme"  

        android:windowSoftInputMode="adjustResize">  
        <intent-filter>  
            <category android:name="android.intent.category.DEFAULT" />  
            <category android:name="android.intent.category.BROWSABLE" />  
            <action android:name="android.intent.action.VIEW" />  
            <data android:scheme="h56131bcf" />  
        </intent-filter>  
    </activity>  

    <provider  
        android:name="io.dcloud.common.util.DCloud_FileProvider"  
        android:authorities="com.everesthouse.kiddieworld.dc.fileprovider"  
        android:exported="false"  
        android:grantUriPermissions="true">  
        <meta-data  
            android:name="android.support.FILE_PROVIDER_PATHS"  
            android:resource="@xml/dcloud_file_provider" />  
    </provider>  
    <!-- [START fcm_default_icon] -->  
    <!-- Set custom default icon. This is used when no icon is set for incoming notification messages.  
         See README(https://goo.gl/l4GJaQ) for more. -->  
    <!--<meta-data  
        android:name="com.google.firebase.messaging.default_notification_icon"  
        android:resource="@drawable/ic_stat_ic_notification" />-->  
    <!-- Set color used with incoming notification messages. This is used when no color is set for the incoming  
         notification message. See README(https://goo.gl/6BKBk7) for more. -->  
    <!--<meta-data  
        android:name="com.google.firebase.messaging.default_notification_color"  
        android:resource="@color/colorAccent" />-->  
    <!-- [END fcm_default_icon] -->  
    <!-- [START fcm_default_channel] -->  

    <meta-data  
        android:name="com.google.firebase.messaging.default_notification_channel_id"  
        android:value="@string/default_notification_channel_id" />  
    <!-- [END fcm_default_channel] -->  

    <!-- [START firebase_service] -->  
    <service  
        android:name="com.everesthouse.kiddieworld.MyFirebaseMessagingService"  
        android:exported="false"  
        android:directBootAware="true">  
        <intent-filter>  
            <action android:name="com.google.firebase.MESSAGING_EVENT" />  
            <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />  
        </intent-filter>  
    </service>  
    <!-- [END firebase_service] -->  

    <!-- Push(推送)-个推 begin -->  
    <!-- 官方网站:http://www.igetui.com/ -->  
    <!-- meta-data节点android:name="appid"项中android:value值为个推服务器上申请的APPID -->  
    <!-- meta-data节点android:name="appkey"项中android:value值为个推服务器上申请的APPKEY -->  
    <!-- meta-data节点android:name="appsecret"项中android:value值为个推服务器上申请的APPSECRET -->  
    <!-- 个推 aps配置  begin -->  
    <service  
        tools:replace="android:exported"  
        android:name="com.igexin.sdk.PushService"  
        android:exported="true"  
        android:label="NotificationCenter"  
        android:process=":pushservice">  
        <intent-filter>  
            <action android:name="com.igexin.sdk.action.service.message"/>  
        </intent-filter>  
    </service>  
    <!--<meta-data  
        android:name="PUSH_APPID"  
        android:value="${GETUI_APP_ID}" />  
    <meta-data  
        android:name="PUSH_APPKEY"  
        android:value="${GETUI_APP_KEY}" />  
    <meta-data  
        android:name="PUSH_APPSECRET"  
        android:value="${GETUI_APP_SECRET}" />  

    <receiver android:name="com.igexin.sdk.PushReceiver">  
        <intent-filter>  
            <action android:name="android.intent.action.BOOT_COMPLETED"/>  
            <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>  
            <action android:name="android.intent.action.USER_PRESENT"/>  
            <action android:name="com.igexin.sdk.action.refreshls"/>  
            <action android:name="android.intent.action.MEDIA_MOUNTED"/>  
            <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>  
            <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>  
        </intent-filter>  
    </receiver>  

    <activity  
        android:name="com.igexin.sdk.PushActivity"  
        android:excludeFromRecents="true"  
        android:exported="false"  
        android:process=":pushservice"  
        android:taskAffinity="com.igexin.sdk.PushActivityTask"  
        android:theme="@android:style/Theme.Translucent.NoTitleBar"/>  

    <activity  
        android:name="com.igexin.sdk.GActivity"  
        android:excludeFromRecents="true"  
        android:exported="true"  
        android:process=":pushservice"  
        android:taskAffinity="com.igexin.sdk.PushActivityTask"  
        android:theme="@android:style/Theme.Translucent.NoTitleBar"/>-->  

    <!--個推版google play版配置-->  
    <!--<service  
        android:name="io.dcloud.feature.apsGt.GTPushDevService"  
        android:exported="true"  
        android:label="PushService"  
        android:process=":pushservice" />  
    <activity  
        android:name="com.igexin.sdk.PrivacyActivity"  
        android:exported="false"/>-->  
    <!--個推版google play版配置-->  

    <!--<receiver android:name="io.dcloud.feature.apsGt.GTNotificationReceiver" android:exported="false">  
        <intent-filter>  
            <action android:name="android.intent.action.BOOT_COMPLETED" />  
            <action android:name="com.everesthouse.kiddieworld.__CREATE_NOTIFICATION" />  
            <action android:name="com.everesthouse.kiddieworld.__REMOVE_NOTIFICATION" />  
            <action android:name="com.everesthouse.kiddieworld.__CLEAR_NOTIFICATION" />  
            <action android:name="com.everesthouse.kiddieworld.__CLILK_NOTIFICATION" />  
        </intent-filter>  
    </receiver>  

    <service  
        android:name="io.dcloud.feature.apsGt.GTNormalIntentService"  
        />-->  

    <meta-data  
        android:name="dcloud_appkey"  
        android:value="294c13b835e230e72e0ee124e06a71e3" />  

</application>  

</manifest>

2021-10-26 17:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复