2017-06-30 11 views
1

Androidスタジオがインストールされ、簡単なアプリが作成されました。 携帯電話にAPKファイルをインストールすると、正常にインストールされますが、自分のホーム画面にアプリアイコンが表示されません。インストール後にAndroidアプリアイコンが表示されない

この質問は以前に尋ねてきた、との答えは、私は彼らがすでにいる

 <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 

私のAndroidManifest.xmlに以下の行を必要とするということです。完全な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> 

私は間違っていると思いますか?

+0

ない質問への更新などの回答などのソリューションを投稿してください。また、_solved_をタイトルに追加しないでください。ありがとうございました。 – Bugs

答えて

1

親切

android:icon="@mipmap/ic_launcher_round" 

でic_launcher置き換えるとMenifestファイルからこの行を削除し、ここで

android:icon="@mipmap/ic_launcher" 

.... menifestファイルに変更

android:roundIcon="@mipmap/ic_launcher_round" 
+0

私はそれを変更しましたが、アイコンはまだ表示されません。 – Pim

+0

mipmapフォルダに "ic_launcher_round"アイコンを追加しますか? –

+0

はい、アイコンがあります。また、アプリのインストール時には、インストール中に正しいアイコンが表示されます。アイコンはまだホーム画面に表示されません。 – Pim

0

は、それはあなたを助けることを願っています、マニフェストファイルにコピー&ペーストするだけで

のAndroidManifest.xml

<?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> 
関連する問題