I'm getting some image cropping demo from the net , and I'm trying to import that lib project in my existing android studio project. I don't understand how to import lib project in my project .
Here is getting demo from net.
See this is highlighted the folder name cropper . This demo is getting from net .How to done same as in my existing project.
Go to File->New->Import Module then browse you project. After importing module go to project structure and add module dependency to your project.
First add it as a new module into your project.
Then go to Project structure select dependencies tab and then add that module as a dependenci.
Related
I'm trying to set up my Android project on my new laptop and I'm having some trouble. My project works fine on my PC, it's just the new setup I can't get working right. The project file is building properly, but it won't display in the project view. The files I can open show a red J in a circle. All attempts to update or pull just end in "All files up to date."
This is a link to my github profile: https://github.com/jschioppo/RecipeList
I have downloaded this project and found that there are no project level build.gradle and settings.gradle files.
This is not an Android project it's a module. I am able to run this Module at my end. Do following steps:-
Create new Android project in your studio.
Once it is loaded. Goto File Menu and Click on Import new Module.
If you already have a Module named app then changed the Module name and import this Module.
Now you will be able to run this Application.
You've not added project's build.gradle (located in project's root folder) to your github repo. Please add that to github and try importing again.
downloaded the following open source.
https://github.com/umano/AndroidSlidingUpPanel
Import /library to Eclipse as a Existing Android Code.
There's no error after building the project.
I would like to add the library to my developing app. So I guess I have to build it successfully with library.jar being output to /bin. Or is there other way to make dependency between them ?
You should set the AndroidSlidingUpPanel project as library project. After doing that, in eclipse, right click on your project in which you want to add the AndroidSlidingUpPanel project and go to properties. Then go to android section. In the bottom, click on add Library and select the project. You don't need to add jar manually, eclipse will do that for you.
I am using using Android Studio 0.8.9 and I am trying to import Chilkat Android libs to my project by following the instructions given here. I have done all the imports and my project structure looks something like this.
but the statement
import com.chilkatsoft.*;
gives the error
Error:(8, 1) error: package com.chilkatsoft does not exist
Can anyone help me to integrate the Chilkat Android libs and help me to create the first instance of CkXml class?
Seems like a subModule why dont you add its as a Module, you can add it in File->Import Module and select the folder under src. It will be added as a module, then go to project settings or project structure and in your main module click on the Dependencies tab and in the green Plus Icon you can add a submodule as Dependency, select that module and Rebuild if necesary this has to be enough.
Otherwise if this dont work add the folder and be sure to hit Build->Rebuild Project so android studio recognize the new classes.
Good Luck
i am a android app developer and converting myself from Eclipse to Android Studio.
Now i get a difficulty to add library project into another project.
What i can do in Eclipse is very clear:
1.Set project B as library Project (right click->properties->android->is Library)
2.Add this library into Project A (right click->Properties->android->add...->choose Project B->OK
But how can i execute such behavior in AS?
I read article
Create a standalone library with Android Studio
and Create Project A as Library in AS.
Now i create Project B in AS with module BApp,
how can i add Library Project A into B/BApp?
The reason i would not like to copy files of Project A to Project B is, I would also use Library Project A in my many other Project. I dont think it is a good idea that make a hard copy to each Project while i will always update Library A in local.
Appreciation for the Help!
You have to go to Project Structure and add the library as a new module. To do this click on the + icon and select Import Existing Project, once the module is imported go to the Dependencies tab, click on the + icon and select Module Dependency and click on your library.
I'm trying to use
Android PagerSlidingTabStrip v1.0.1library
in my project but, after I import the project as existing code in work space I get to project
the Mainactivity and library and and the library is a dependency to the Mainactivity
but it seems that library project doesn't recognized as local library
so what i did is
1- I tried to make a jar file called library.jar from the library project
and I imported as a external jar so that fixed my import but when I try to use PagerSlidingTabStrip object it says missing reference
and beside that there is res folder couldn't be loaded .
2- I follow this How to add a Library Project to a android project
and I did like what the accepted answer said but it still didn't work for me .
This is how I added the library project
That what I got in project libraries
I tried to use this dependency in build.gradle
dependencies {
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
}
but it didn't work
i added before sherlock to eclipse so when i added it inside the root folder
a bin folder created and inside it there are a jar file and that's
doesn't happen with library so i think here is the problem
any help?
From properties window select option android scroll down, below library heading click the add button and select library project.
I was facing the same issue but soon i came to know that there was support library missing from Library project.
Add support library and clean build the library project and then add it in your project
Do the following:
File->New->Other
Select Android Project
Select "Create Project from existing source"
Click "Browse..." button and navigate to "PagerSlidingTabStrip-master" folder which you have downloaded from https://github.com/astuetz/PagerSlidingTabStrip
Check "library"! (Uncheck "sample"). Make sure "Copy to Workspace" is checked as well.
Click Finish. Now "library" is project in your workspace.
Right-click on your project -> Properties
In Android -> Library section, click "Add"
Select recently added "library" project, click Ok and you're all set.