Android Studio when deploying does not create the shortcut

0

I have a Motorola E4 Plus, Android 7.1.1 make a hello world for facebook login with Android Studio Sdk 26 compatible with Android 4.2 and up.

Perform several deployments and suddenly the application icon disappeared from both the desktop and the applications section. When deploying by Android Studio the application is executed, however going through configuration > applications tells me that there is no direct link.

I have installed and reinstalled from scratch, I also created a new application and pass my code when deploying does exactly the same.

How can I fix the shortcut and / or Configuration of the application so that it generates the icon when deployed?

    

<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">
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />

            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>

</application>

Everything works until I add the Facebook login button to the view     

In gradle.build of the application I have this dependency compile 'com.facebook.android:facebook-login:[4,5)' and in gradle.build of the project I add to repositories mavenCentral () and a allprojects {repositories { mavenCentral ()

    
asked by Rubens 05.12.2017 в 17:15
source

1 answer

0

In your AndroidManifest.xml of your application, you must ensure that you add an icon using the % property android:icon , either one that is in the /drawable or /mipmap directory, for example:

  <application
        android:icon="@mipmap/my_icon"
        ...
        ...

If you do not define the property, the icon will not appear because there is no default icon for the application.

    
answered by 05.12.2017 в 19:16