Farhad Ba-ali
Farhad Ba-ali

Reputation: 451

Application Installation Failed Installation failed with message Failed to finalize session : INSTALL_PARSE FAILED MANIFEST MALFORMED

I got this pop msg Error, i dont know what to do, i hope someone can help me, i allready tried to seek help everywhere i couldn't find any.

Here is the warning: Application Installation Failed Installation failed with message Failed to finalize session : INSTALL_PARSE FAILED_MANIFEST MALFORMED: Failed parse during installPackageLI: /data/app/vmd11789010436.tmp/base.apk (at Binary XML file line #34): requires an android:value or android:resource attribute.

It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove.'e the application data! Do you want to uninstall the existing application?

Here is my manifest.xmL. I don't know if i have anything wrong here, i tried 

to search but i could not find the solution.

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

<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=".activities.ActivityLoginPage" />
    <activity android:name=".activities.ActivitySignUp" />

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
         />

    <activity
        android:name="com.facebook.FacebookActivity"
 android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />
    <activity android:name=".activities.ActivityHomepage">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".activities.CreateAccountActivity" />
    <activity android:name=".activities.AnimeActivity" />
    <activity android:name=".activities.NotificationActivity"
                >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>

Upvotes: 1

Views: 986

Answers (1)

Yupi
Yupi

Reputation: 4470

Your meta-data contains FacebookApplicationId but no Id is provided here:

<meta-data
    android:name="com.facebook.sdk.ApplicationId"/>

And exception is pointing on that part that you didn't provide Id it should be:

 <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="Your id here" />

Also check on official Facebook developer page about more info: https://developers.facebook.com/docs/android/getting-started

Upvotes: 1

Related Questions