安装后未出现Android应用程序图标
我安装了Android Studio,并制作了一个简单的应用程序。 当我在手机上安装APK文件时,它安装得很好,但我的主屏幕上没有任何应用程序图标 以前有人问过这个问题,答案是我需要在我的AndroidManifest.xml中包含以下几行安装后未出现Android应用程序图标,android,android-studio,Android,Android Studio,我安装了Android Studio,并制作了一个简单的应用程序。 当我在手机上安装APK文件时,它安装得很好,但我的主屏幕上没有任何应用程序图标 以前有人问过这个问题,答案是我需要在我的AndroidManifest.xml中包含以下几行 <intent-filter> <action android:name="android.intent.action.MAIN" /> <category and
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pizza.learn.learnpizza">
<uses-permission android:name="android.permission.INTERNET"/>
<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=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
他们已经在那里了。以下是我的完整AndroidManifest代码:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pizza.learn.learnpizza">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<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=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
知道我做错了什么吗?请在menifest文件中更改。。。。这里
android:icon="@mipmap/ic_launcher"
将ic_启动器更换为
android:icon="@mipmap/ic_launcher_round"
并从Menifest文件中删除此行
android:roundIcon="@mipmap/ic_launcher_round"
希望它能帮助您,只需复制并粘贴到您的清单文件中 AndroidManifest.xml
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pizza.learn.learnpizza">
<uses-permission android:name="android.permission.INTERNET"/>
<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=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
我更改了它,但图标仍然没有出现。是否在mipmap文件夹中添加“ic\u launcher\u round”图标?是的,图标在那里。此外,当应用程序安装时,它会在安装过程中显示正确的图标。图标仍然没有显示在主屏幕上。请将解决方案发布为答案,而不是问题的更新。另外,请不要在标题后附加解决方案。非常感谢。