从Play商店安装后,应用程序图标将更改为默认图标



我已经在Playstore上传了我的应用程序。但是当我下载我的应用程序时,该图标设置为默认的安卓图标。我多次尝试解决问题,但无法

我的清单文件上的一切似乎都正确。我什至从 minmap 文件夹中删除了默认图标。问题仍然存在。这是我的清单

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.hashline.rinithbinny.photoblog">
    <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" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/iconfinal"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/iconfinal"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".LoginActivity"
            android:screenOrientation="portrait" />
        <activity android:name=".RegisterActivity" />
        <activity android:name=".SetupActivity" />
        <activity
            android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
            android:theme="@style/Base.Theme.AppCompat" />
        <meta-data
            android:name="preloaded_fonts"
            android:resource="@array/preloaded_fonts" />
        <activity android:name=".AddPostActivity" />
        <activity android:name=".UserPage" />
        <activity android:name=".SendHash" />
        <activity android:name=".PhoneReg" />
        <activity android:name=".AddSlate"></activity>
    </application>
</manifest>
几个月

前我在开发应用程序时遇到了这个确切的问题。我认为这是一个维度问题。这是一种对我有用的方法:

首先,确保图像(在您的情况下,iconfinal(是png文件。我认为 svg 也很好用。为了解决我的问题,我添加了同一图像的多个尺寸。我基本上有hdpi,mdpi,xhdpi,xxhdpi以及一般的/drawable图像。这样做之后,一切都很完美。

我真的希望这有帮助.. 快乐编码!

我总是建议使用 Roman Nurik 编写的生成器 https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html - 它将以 android 操作系统为所有分辨率首选的所有大小生成您的图标。 这应该有助于避免任何不兼容问题。