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
Related
I am trying to integrate Facebook Login into my App and was going through the samples provided by Facebook on Github:
https://github.com/facebook/facebook-android-sdk/tree/master/samples/LoginSample
Above is the Login Sample that I want to try out but seeing the project structure, I could only see build.gradle and not any other standard Android project files. I tried importing this sample as a project but ended up with a incomplete project which doesn't recognize any Android Module, nor there is any aapt compiler configured. It also complains about the AndroidManifest.xml, assets folder, etc.
I tried, creating an Android facet through Project Structure settings, but still the project doesn't get recognized as a full fledged Android project.
Is there any way, I can have it as an Android project?
You just need to clone or download the facebook-android-sdk repository. Once you download it just try to open it in Android Studio, you will be able to access LoginSample or other modules as an Android Project.
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 am in the process of migrating my current project from eclipse to studio which is present on github.
My project makes use of google play services lib and an another library (calendar lib to be precise)
I tried many ways of migrating to studio following the tutorials on the net but I am not able to achieve it.
I am getting problem with my Google play service library. The error is cannot find resource #integer/google_play_services_version
At this point of time I confused don't know Wat to do. Can some please tell me proper way of migrating.
It will be of great help. Thanks in advance :)
You are seeing the error in Android Studio? This should not be the case, as Android studio handles libraries through gradle dependancies. You can check your build.gradle for the dependencies. If you are seeing this error, I assume it is in Eclipse, which the link #SurajPalwe13 provided should help fix.
Migrating from Eclipse to Android Studio should be as easy as Importing the Eclipse project into Android Studio.
In Android Studio, File > Import > Select Eclipse project directory. Then a import wizard should come up.
Alternatively, you can export your Eclipse Project to contain gradle files:
In the latest version of Eclipse, Right Click Project > Export > Android > Gradle. Then follow through the export wizard. You should then be able to import the build.gradle file in Android Studio.
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"
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.