简体   繁体   中英

Android app is not launching with facebook SDK 3.6 getting some android support v4 jar file issue

I have added facebook sdk 3.6 to my project. And when i tried to run my project i got error of multiple android support v4 jar files and i searched in google and i found to remove ant one jar or copy same jar file.

Jar Mismatch Found 2 versions of android-support-v4.jar in the dependency list

Facebook SDK for Android duplicate support library on dependencies

So first i tried to remove my project android support v4 jar and added facebook Sdk 3.6's jar to my project then error has been removed but the problem i am facing right now is i am not able to launch my app not in device also and not in emulator.

Then again i searched in google and i found this solution

Jar Mismatch Found 2 versions of android-support-v4.jar in the dependency list

i tried with this and other so many solution but after replacing this jar files, or removing jar files from my project i am not able to launch my app.

I have tried to create new project and copied my all content in new project also but getting same problem not able to launch my application in both real devices and emulator.

All the time when i try to run my app i am getting Launching app (100%) but it is not launching. and if i try to do some modification then i get Eclipse is not responding and forcefully i have to close eclipse and again i have to start eclipse which is very time consuming.

I am stuck in this issue since morning please help. Any help would be appreciated.

Edit

I have tried with this solution also Link

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="iqual.fidol_final"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="19" />

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="iqual.fidol_final.FacebookLogin"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".ShowVideo" >
        </activity>
        <activity
            android:name="com.facebook.LoginActivity"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />

        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/app_id" />
    </application>
</manifest>

Solution

I just have restarted my PC and now it's working. Don't know what happened but just this tricks works

I also had the same issue. This issue occurred because the support V4 library had different versions. To solve this issue copy the v4 library in your facebook sdk and paste it in your project. Don't forget to build path.

If you have any other library projects added, pls check on it too.

Paste it v4 jar on Facebook lib project . and if have v4 jar on main project, remove it.

Once complete close all lib files and project then reopen the project.

Firstly i would say to add the facebook sdk in your project as library and do not add the support library explicitly in your project just remove it if you have added support jar into your build path. And then after adding sdk clean and build your project.

In this way do you get any error ?

Then just right click on your project Go to >Properties>Android Tools>Add support library.. and then try to clean your project and build again. By selecting both facebook sdk and your project.

This will solve your issue i guess..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM