my app icon missing manifest:
<application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name=".mainactivity" android:label="@string/title_activity_main" > <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.default"/> </intent-filter> </activity> </application> the resources in correct place , don't nothing strange manifest. think problem deploy device android studio, because when use old manifest obtained vcs, problem continue.
the original manifest.xml:
<?xml version="1.0" encoding="utf-8"?> <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name=".mainactivity" android:label="@string/title_activity_main" > </activity> </application> for deploying, use default run configuration of android studio or android application.
edit: problem solved: problem in line:
<category android:name="android.intent.category.default"/> if put in place following line:
<category android:name="android.intent.category.launcher"/> the icon back.
the problem in line:
<category android:name="android.intent.category.default"/> if put in place following line:
<category android:name="android.intent.category.launcher"/> the icon back.
Comments
Post a Comment