Android app has red exclamation mark in Eclipse after importing Facebook library

I imported the Facebook library after this tutorial: http://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

And now I am ready to compile and try to start the project, but it does not compile, saying that I have an error in my project.

It seems that the problem is that I have a Facebook library that I imported ... it has a red exclamation mark icon next to it, and now my own project has a red exclamation mark icon next to it, since I tied up two.

Does anyone know how to fix this? For the record I do not need the social functions of facebook. I needed to connect my project with the Facebook application application that I have.

+6
source share
9 answers

Import Facebook SDK

Make sure you have the Android SDK 2.3.3. Import the Facebook SDK project into the workspace. Then right-click on it and go to "Properties"> "Android" and select "Android SDK 2.3.3." Perhaps after that cleanse and you should go well.

Facebook SDK Link

Right-click on your Android application project and select Properties> Android and add the imported Facebook SDK to your project. There you go!

+8
source

You need to fix the missing libraries. Right-click your project-> Properties-> Build Path-> Libraries.

+7
source

Generally speaking, a red exclamation point indicates a problem with your build path. If you go to the Build Path dialog, you will see something on the Libraries tab that is broken.

+3
source

this should be a jar file mismatch. First of all, remove android.jar from the FacebookSDK. You can do this by removing it from the project properties. Right-click Project-> Properties-> Java Build Path → Libraries-> Remove Android Dependency Library.

Then follow these steps:

Right-click on the project → Android Tools → Add Support Library and right-click on the project again → Android Tools → Fix Project Properties

and "Clear." Create your projects.

Hope this helps.

+3
source

I had the same problem.

After re-extracting the SDK to facebook and re-importing it into Eclipse, it ceased to exist, and everything worked fine.

I have no explanation other than "Eclipse sucks" - this may be due to the Eclipse project files and what paths they refer to.

+1
source

To remove support for android-support-v4.jar, if it exists in your project, which is already on Facebook.

+1
source

For me, I was getting:

[2013-05-26 23:10:29 - FacebookSDK] Cannot resolve target "android-8"

when importing the FacebookSDK project.

FacebookSDK> Properties> Android and selecting my targeting API level, then cleaning up the project solved the problem for me.

0
source

in my case, I solved this problem as such: 1.Project-> Properties-> Android. Then, on the right, in the library space, look to see if there is any element. Take it away.

I used an incompatible GridLayout. That was the problem. I deleted it, and everything is in order.

0
source

The problem may be that idk is updated in some file - to solve this problem for external libraries, do the following

1 delete the external library in eclipse by right clicking on the library folder and deleting

then in your project do the following

  • right click on the project and go to properties
  • Choose a Java build path.
  • go to the "Libraries" tab
  • Remove links to jar files that you have already deleted. There will be a red sign next to them so you can easily identify them.

and add the libraries you can do as follows

  • Right click on the project
  • The properties
  • android 4 tab at the end add
  • library search
  • To apply
  • OK
0
source

Source: https://habr.com/ru/post/943771/


All Articles