Today, I downloaded the Facebook SDK for Android and imported to the eclipse. When I tried the FB Sample app, it informed a error :
Project 'FB Sample App' is missing required Java project: 'Facebook SDK for Android - 5fec77c'
I don't know to fix it. Who can help me?
Thanks a lot!
You can just also import the library project Facebook SDK and mark it as library by going to properties of the imported project.
Then go to your example project and go to properties and add that library project.
Also Look to this Question
"For more details you can search "Android how to add project as library project" and you will find many step-by-step blog/tutorial"
Related
I want to integrate liblinphone library with my android studio project and I went through the official documentation provided by Liblinphone developers.
I have cloned the liblinphone project from git repository.When I am trying to import that cloned project into android studio, It is not importing.
I have searched a lot but didn't get any proper solution for this.If anyone did this liblinphone integration please guide me. This is the link I am referring
Thank you.
Navigate to the liblinphone website
http://www.linphone.org/
Search for the liblinphone page and go to downloads
http://www.linphone.org/technical-corner/liblinphone/downloads
Download the liblinphone android sdk
Open your android project (I assume you already have an android project)
In android studio: file->new->new module
Select import .JAR/.AAR Package
Select the .aar from your liblinphone-android-sdk (see image above for reference)
After your done importing the package go to File->Project Structure in Android Studio and add a module dependency to your project
Select :liblinphone-android-sdk
You should now be able to use the functionality the library provides
See also this explanation on how to add external libraries in android studio
I am trying to use an external eclipse project in android studio. I did n't find any nice tutorial.
"Also the docs says, If you want to import this project in Android studio, here you can download build.gradle."
Can you please guide me where/how to use this build.gradle?
Step by step procedure will be appreciated?
Open Android Studio.
Click 'File'.
Click 'Import Project'.
Choose the project to import.
It will ask for a destination to save the project as Android
Studio's.
Save it and it will automatically convert the project
Android Developers website has a quick migration guide.
General Android Studio information is available here.
I'm trying to add Facebook sdk in eclipse(I'm using cocos2d-x) , following this guideline
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.
If anyone have idea, please help. Thanks!
There are following step to import Facebook:
Download latest fb sdk and extract it.
import it into eclips as android project.
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.
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..
I am making an android app in which i am using facebook login.
I am unable to add the facebook sdk as library to my project.
can anyone tell what could be the problem.
thanks
You got facebook sdk from https://github.com/facebook/facebook-android-sdk Link.
Import this project in your eclips.
then go to package explorer of your eclipse and right click your original project --> property --> android . at this place below built target there is library option add your facebook project from here.
It may help you.
Did you solve your problem? If not here is what I did. In Eclipse right click in your app folder select Build Path -> Link Source and finally find the facebook-sdk folder click Finish and you are done.
How can I add the facebook sdk to my android project in IntelliJ? I'm familiar with how to add a library project to an existing project in Eclipse, but not in IntelliJ. Anyone know how?
The answer below is outdated, please refer to the actual solution.
If it's just a jar, you can add it to the module dependencies.
If you want to use Android Library with source code, you need to create a new Module in IDEA with Android Facet and specify in the facet settings that it's Android Library Project. Configure module content and source roots and then add this module as a dependency to your Android application module.
Here are the screenshots for the Facebook SDK Android Module configuration in IDEA:
Note that the root of the module is set to the facebook subdirectory from the GitHub repository and Is Library Project checkbox is enabled.
If you add this module as a dependency to your application, everything should build fine.
I've also uploaded a sample project that consists of simple sample provided with the SDK and this facebook API module as a dependency, you can download and use it for reference.
Remove if inappropriate - but this solution was much more relevant for the latest version of IDEA and the latest Facebook SDK: https://stackoverflow.com/a/14732898/1711200
Tested with IDEA 12.1.2 and Facebook SDK 3.0.1
My reason for posting this is because the directory structure for the latest Facebook SDK is different & makes this post outdated. I also kept getting directed to this thread, whereas the thread I've linked to is a better & more relevant solution.