Nargis
Nargis

Reputation: 769

Add Facebook SDK in your eclipse project

I'm trying to add Facebook sdk in eclipse(I'm using cocos2d-x) , following this guideline

enter image description here

I'm confused where to add "repositories{ mavenCentral() }" as eclipse project don't have build.gradle.

I've also tried implementing this one :

https://github.com/facebook/facebook-android-sdk/

http://www.youtube.com/watch?v=w-vNi1W4fco

but when I import Facebook sdk in eclipse, it still give errors.

enter image description here

If anyone have idea, please help. Thanks!

Upvotes: 0

Views: 1040

Answers (2)

MPG
MPG

Reputation: 795

Change Your Project Target SDK to 19 And Go to >> Project Property>> Java Compiler>> Uncheck to defaults java Version that's 1.7 or 1.6

It work Fine in My Case..

Upvotes: 1

Singhak
Singhak

Reputation: 8896

There are following step to import Facebook:

  1. Download latest fb sdk and extract it.
  2. import it into eclips as android project.
  3. If it is showing any error regarding android support then include "android-support-v4.jar" also bolts-android-1.1.2.jar in your lib folder

If you are using fb sdk in your cocos2d-x project make sure your project and fb sdk in same directry.

Upvotes: 1

Related Questions