Логотип приложения не отображается после индексации приложения Firebase - PullRequest
0 голосов
/ 08 января 2019

Пожалуйста, посмотрите мой файл манифеста

приложение показывает значки по умолчанию везде (в списке приложений, уведомлениях FCM и т. Д.), Даже если я заменил файлы (ic_launcher.png) на значки с логотипом.

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".Welcome_Screen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter android:autoVerify="true">
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="https" />
            <data android:host="www.mywebsite.com" />
        </intent-filter>
    </activity>
    <activity android:name=".MainActivity"></activity>
    <activity android:name=".Latest_Webview" />

    <service android:name=".MyFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

    <meta-data
        android:name="com.google.firebase.messaging.default_notification_color"
        android:resource="@color/colorAccent" />

</application>

и зависимости файла Gradle:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-appindexing:15.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
//implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.firebase:firebase-invites:16.0.0'
implementation 'com.google.firebase:firebase-crash:16.0.0'}

1 Ответ

0 голосов
/ 08 января 2019

Не ясно, вопрос, но я предполагаю, что вы назвали свой значок как ic_launcher.png и заменили значок по умолчанию. Проблема в том, что он все еще получает ссылку на старый значок. Решение этой проблемы - перейдите в приложение местоположения вашего проекта-> src-> main-> res-> mipmap-anydpi-v26 (последняя версия) и удалите эти два xml-файла, т.е. ic_launcher и ic_launcher round. Удаление этих данных не повредит, так как они будут автоматически созданы снова в соответствии с новыми значками.

...