Android - 安装apk后没有启动器图标

时间:2017-01-09 09:44:47

标签: android apk android-manifest

我知道这个问题已被多次询问,但旧的答案并没有解决我的问题,也许有些事情发生了变化。 安装apk后为什么没有启动器图标?

这是manifest.xml

<?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="xxx.xxx.xxxx"
    android:versionCode="1" >

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

    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="xx.xx.xx.xx.MyActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="xx.xx.xx.xx.Configuration"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:label="@string/title_activity_configuration"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        </activity>
        <activity
            android:name="xx.xx.xx.xx.xx"
            android:label="@string/title_activity_login" >
        </activity>
    </application>

</manifest>

有什么问题?请指南。

1 个答案:

答案 0 :(得分:0)

应用图标应该是minmap这样的

  • minmap-MDPI / ic_launcher
  • minmap-HDPI / ic_launcher
  • minmap-xhdpi / ic_launcher
  • minmap-xxhdpi / ic_launcher
  • minmap-xxxdpi / ic_launcher

不在Drawable,所以请更改它。并检查图标大小。

尝试此链接制作应用图标 https://makeappicon.com/