两个应用程序图标显示android。我的主机有毛病吗?

两个应用程序图标显示android。我的主机有毛病吗?,android,build.gradle,android-manifest,appicon,Android,Build.gradle,Android Manifest,Appicon,在我的清单中使用了很少的意图过滤器,但我删除了除laucher之外的所有意图过滤器,但仍然有两个图标。两个图标还有其他原因吗 我正在编辑这篇文章,还添加了我的app build.gradle和project build.gradle 这是我的舱单 <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature

在我的清单中使用了很少的意图过滤器,但我删除了除laucher之外的所有意图过滤器,但仍然有两个图标。两个图标还有其他原因吗

我正在编辑这篇文章,还添加了我的app build.gradle和project build.gradle

这是我的舱单

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

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <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-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:largeHeap="true"          
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:replace="android:icon">
        <activity
            android:name=".activity.SplashActivity"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustResize|stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".activity.user.LoginUserActivity"
            android:windowSoftInputMode="adjustResize|stateHidden" />

    </application>

在清单中,您使用了两个图标,如图标和圆形图标。因此,您可能会得到两个图标

<application
    android:allowBackup="true"
    android:icon="@drawable/app_icon" //app icon
    android:label="@string/app_name"
    android:largeHeap="true"
    android:roundIcon="@drawable/app_icon" ---> //another app icon
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:replace="android:icon">
尝试删除任何图标。

1如果图标出现问题

可能性1

检查您的所有可绘制MDPI、xdpi、xxhdpi、xxxhdpi等。。。图标相同或名称不同的文件夹

可能性2

如果您使用任何库或模块,请将该图标的名称从app_name更改为任何其他名称

2如果发射器出现问题


如果是启动器问题,请从设备上卸载所有应用程序。确保清单中只有一个启动程序活动,然后再次运行。

如果应用程序清单中提到两个图标,请参见以下内容:

<application
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:roundIcon="@drawable/app_icon"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:replace="android:icon">


我通过这个链接解决了这个问题


我转到/build/intermediates/manifests/debug/AndroidManifest.xml路径,发现有两个启动器。

@g.brahma通过删除一个图标得到相同的结果。@UnityTaru您是否也可以尝试删除manifest tools:replace=android:icon中的这一行?我不知道为什么在那里使用它。@g.brahma tools:replace=android:icon这告诉合并使用我的清单图标,而不是其他库的图标。你创建快捷图标实用吗???@dastan不创建快捷图标我尝试了u所说的两个过程,但结果是sameI从中解决了这个问题stackoverflow.com/questions/6028695/…我访问了这个路径/build/intermediates/manifests/debug/AndroidManifest.xml,发现有两个Lancher。但是您必须接受问题的一个答案。找出对你帮助最大的答案,并接受它。您也可以添加自己的答案,以便其他人获得帮助。我从以下路径解决了此问题:我转到/build/intermediates/manifests/debug/AndroidManifest.xml,发现有两个Lancher。@Shel S9如上所述,一切正常。我从stackoverflow.com/questions/6028695/解决了此问题……我转到了此路径/build/intermediates/manifests/debug/AndroidManifest.xml并发现有两个Lancher。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourpackage"
    xmlns:tools="http://schemas.android.com/tools">