How can I import lib folder in Android Studio? - android

I've a project in Android Studio and I want import a library ZXing. I downloaded the folder not the jar but how can I import it? thanks

Follow below steps:
Goto File
Click -> Import Module...
Then select you library project folder.
After importing library project.
Goto File
Click-> Project Structure
Select your main project from Module section [Left Pane]
Then click on Dependency Tab on Right Side
Click on + icon on Right Side -> Select Module Dependency -> Choose Module

Related

how to use a project as module in another project in android studio

I've two android projects project:Main and project:Sub. When I am using Project:Main there is a Button, if i click That Button Project:Sub have to be Run in Same App. for that how i've to import project:Sub into project:Main like module, library,...etc any help how to import one project into another project?
You need to Import Project as a Module
From menu File -> New -> Import Project /Import Module. Depending on what you are importing.
Then you need to check the dependency in the Project Structure Settings.

How to add Android-wheel library to android studio?

How to add Android-wheel library(https://github.com/chemalarrea/Android-wheel) to android studio?
Its as simple as other library integration in android studio.
I've listed steps below just follow it you will get android-wheel lib support to your studio project.
1) Download library from github.
2) go to android studio project File -> new -> import module.
- choose android-wheel library.
after above steps library should appear within android studio project explorer.
now you have to add dependency for that follow below steps
1) Right click on your project -> choose Open module settings -> from left
panel choose your project (not android-wheel library)
2) after choosing your project go to dependencies tab in right side frame.
3) press '+' and choose module dependencies and select android-wheel lib.
That's it...
Happy Coding! :)
Please find how to import any module to android studio project from here :
Please follow below steps :
Click on File -> New -> Import New Module.
Add Souce Directory path as library root level path.
Click 'OK' and 'Finish'.
Go to project setting -> Modules -> app -> dependencies -> click in '+' ->
add module ->add wheel module here.
Now build your project and run.And if you found any error let me know.
Please refer below link for reference.!!
https://stackoverflow.com/a/32118213/4018207
Thanks

Unable to import NineOldAndroids in eclispse

where can i download the "NineOldAndroids" and how to import it in eclipse. when i am trying to import it , i am getting a message "No projects are found to import". Can someone show me how to import it?
In eclipse to import the NineOldAndroid we just need a jar file which you can download by clicking here and download the jar and place it in your lib folder of your project and then
Step 1 - press Alt+enter and Go to Java build path.
Step 2 - click on Add Jar and add the jar file.
Step 3 - Click on export and order and check the jar file and click on ok.
For more reference see the images
I Hope this will help you..Happeee programming!!!!
Android Studio users can do this -
download the jar file from here: https://www.dropbox.com/s/d1eh3zilkwxue51/NineOldAndroid-2.4.0.jar?dl=0
and place it in your project /libs folder
then go to: File - Project Structure - Dependencies - (click + to add)
then select "File Dependency"
select libs/NineOldAndroid-2.4.0.jar and click OK
add to your class that uses it:
import com.nineoldandroids.(whateveryouneed);

How to add AndroidImageSlider library to my project

I want to add AndroidImageSlider library to my project
library link --> click here
but how can i do that?
please help me.
After you've downloaded it from here , just import it from file -> import -> Existing Project To Workspace , select your Project and Import . then in your project properties , android section , panel below android Api's, add that library to your project .
Edit : Steps to add a library Project to Existing Project :
1 - download Library Project File
2 - import that library to the eclipse file -> import -> Existing Project To Workspace -> Browse to your File
3 - if the IsLibrary tick marck doesn't have checked , check that to inform that project as a library project in Properties -> Android
4- inside your Main Project properties Android -> Library -> add -> your library project
** if the library project path has been changed you have update your main project reference to the new path remove it again and add updated path to your library project.

Error Importing sample projects to eclipse

I want to import this sample project from android so I can study the code however I am getting this error. Anyone know why?
No projects are found to import
Goto File -> Import -> Android -> Import existing project into workspace
Import the project in above method it will works .. baby
Yupe, you are importing the android code which is not having the AndrodiManifest.xml file. so instead of importing "existig project into the workspace" you need to import Android Code into the workspace.
Eclipse
File->New->Project->Android Project from Existing code->browse
Have a look at It:
Goto File > New > Project
Select the type of project, click Next
Uncheck Use default location
Click on Browse to navigate to your source folder, or type in the
path to your source
Click Finish
Eclipse is looking for eclipse projects, meaning its is searching for eclipse-specific files in the root directory, namely .project and .classpath. You either gave Eclipse the wrong directory (if you are importing a eclipse project) or you actually want to create a new project from existing source(new->project->android project from existing source).
Or Import -> Android -> Import existing project into workspace
I think you probably want the second one, because Eclipse projects usually have separate source & build directories. If your sources and .class files are in the same directory, you probably didn't have a eclipse project.
Edit:
1) File->Import->General->Existing Projects into Workspace.
2) Select root directory: /path/to/project
3) Projects->Select All
4) UNCHECK both "Copy projects into workspace" and "Add project to working sets"
5) Finish
Try this:
File -> import -> General -> Existing Project in Workplace - > Browse

Categories

Resources