Right now i am trying to create a graph in android,after searching from google and i got some solution as, to import the chart library files into my project.Likewise i downloaded that library file, and imported successfully into my project,but here my problem is after importing of that file my project showing error as
console
[2012-08-16 12:32:42 - Graph_test] /Graph_test/gen already exists but is not a source folder. Convert to a source folder or rename it.
[2012-08-16 12:32:44 - Graph_test] /Graph_test/gen already exists but is not a source folder. Convert to a source folder or rename it.
Can anyone tell me how to over come this issue?
Thanks in advance!.
Do this:
Right click on the project and go to "Properties"
Select "Java Build Path" on the left
Open "Source" tab
Click "Add Folder..."
Check "gen" folder and "Res" folder and click Ok and Ok again
Again right click on the project and in the "Andriod Tools" click on "Fix Project Properties"
If the library is another project on your space (or even jar file) then you can right click on your project and select properties. Then go to Android (where you choose version) and at the bottom you will find "is library" section. You can add it there by clicking on add
Related
Trying to migrate to Android Studio 1.3 from good ol' Eclipse but it's frustrating.
How does one add an external library jar to 'External Libraries' section of the project?
Reading SO posts including here, I went to File|Project Structure|Modules
selected app and Dependencies tab.
Clicked '+'
It brings up the Select Path below
How do I add a jar file from D:\mylibs when the Home icon is disabled in the screenshot below?
I tried to copy the jars, and then right-click 'External Libraries'
and Paste but it did not work.
There is something wrong with the AS 1.3 dialogue where you add the .jar file. There are no buttons to navigate up the directory tree or change drives. Instead, to add the library, select the .jar file in Explorer (Windows), right click on it, select Copy, go to Android Studio, select Project->[NameOfYourApp]->app->libs and right click on libs and Paste file into it, click Ok on the confirmation box. Then, right click on the .jar file, go toward the bottom of the menu and select Add As Library. Then in the Create Library box confirm that it is adding to app and click Ok. Gradle will then automatically add it to the build dependencies. You can then check the build.gradle file to make sure you see this line: compile files('libs/[filename].jar') under the dependencies section.
Click on your project name on the project explorer, press "F4" or right-click on the name and select "Open Module Settings". Then click on "Dependencies" tab, and click the green "+" button on the right side, then select "File Dependency", this will bring up a Browse Window, use it to open the ".jar" or the ".aar" file.
Follow the next process and you should get it:
I'm trying to install the Pager Sliding Tab Strip library and demo app into eclipse, but I get errors on installation and compile errors.
the library is here: https://github.com/astuetz/PagerSlidingTabStrip
What I have done is:
downloaded the zip file from github,
unzipped it into a folder on my windows PC,
in Eclipse selected File|Import, Existing Android Code into Workspace, Next, browsed to the root directory \PageSlidingTabStrip-master
Copy projects into workspace
finish
This leads to an error:
Android SDK: Resolving error markers' has encountered a problem.
Marker id 3158 not found.
However, a node in my package explorer tree is created for each of the library and the demo project, but the have compile errors.
What does the reported error mean? Am I doing something wrong? What is the correct way to use this library in Eclipse?
Do the following:
File->New->Other
Select Android Project
Select "Create Project from existing source"
Click "Browse..." 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 added to your workspace as a project. There are some errors detected but ignore them. You can right click on "library", go to "Refactor", and change it to "Lip_PagerSlidingTabStrip" (optional).
Right-click on your project -> Properties
In Android -> Library section, click "Add"
Select recently added "library" project, click Ok and you're all set. Make sure "Is library" in this window is unchecked.
EDIT
If you have faced an error subject to "Project cannot be build until the build path is correct", try to Quick Fix it by this option: "Add android.v4.supprt to Lib_PagerSlidingTabStrip."
I'm following this guide:
https://stackoverflow.com/a/10888882/1943607
Follow the steps below to add HoloEverywhere
Download Zip from GitHub to your computer UnZip the folder Go to
eclipse and choose File->New-> Android Project
Select Create project from existing source and then browse to the HoloEverywhereLib folder
inside extracted folder
Press Finish
Right click on the newly created project and go to Properties. Under the Android heading, you should see a section for Library with a checkbox IsLibrary. Make sure that's checked and press Add and previously added library ActionBarSherlock.
I unzipped the folder. Then went to eclipse -> Right click -> Import -> Android -> Existing Android Code into Workspace.
I select the unzipped folder and It's showing this:
When I click Finish:
And then if I create a new project, and try to import it, It cant find the library; I type org. and it isn't showing up the rest (org.holoeverywhere.app.***Activity). (Like its github says https://github.com/Prototik/HoloEverywhere#how-to-use-maven)
Can you help me out?
Edit: I've also tried to remove src from .classpath files with same result
Clone the repository using Github desktop. Install eGit on Eclipse. Then use import-->Git-->Projects from Git.
I downloaded the Robotium jar as well as javadoc jar file. I then created a folder called libs and pasted the two jars into it. I went to properties,libraries tab and add jar and selected the main jar in my libs directory. I then tried to add the javadoc.jar to the javadoc location. It still does not show me any documentation. Does anyone know why?
Follow this steps:
Create "robotium" directory in your project folder
Place "robotium-solo-4.x.jar" and "robotium-solo-4.x-javadoc.jar" to newly created "robotium" directory
Go to Project -> Properties -> Java Build Path -> tab Libraries, click on "Add JARs..." button on the right side and select your "robotium-solo-4.x.jar"
Expand "robotium-solo-4.x.jar" item on Libraries tab, double click "Javadoc location: (None)", select "Javadoc in archive" & "Workspace file" and choose "robotium-solo-4.x-javadoc.jar" for "Archive path" parameter. Click Ok.
Switch to "Order and Export" and check the line "robotium-solo-4.x.jar"
You are done!
Yes. Go to properties->Java Build Path->select tab Order and Export->select in the list Robotium-solo-3.6.jar->click on Top button->Ok
I want to add banner to my project. I have done some work in this regard, but i have problem in adding "Add External jar".
[Right click on my Project -> properties -> Java Build Path -> Libraries -> Add External jar].
Now my problem is, as I click "Add External jar" a new widow(browsing) opens and asking for to open jar file, but I have studied "Android Developer documents" for adding banner in project, there was nothing mentioned about the to open jar file. Now what I have to do, to add "Add External jar" and I could continue my project further.
Yours help would be greatly appreciated.
Thank`s in advance.
How can i add “Add External Jar” to my project in android
For, this i always follow below steps -
Just create a libs folder on my project ->And, copy the .jar file to there.
In your workspace select your project and right click -> on Properties, just go to Java Build Path
Click the Add External jars it'll open the window dialog box -> root your workspace -> And, select your project -> go to libs folder -> choose the .jar file -> Click ok.
Hope these steps helps you.
There should be a jar file that you downloaded that contains he libraries you need. You'll need to select that jarfile for the step that you are doing currently.
It is a good idea to keep that file within your project folder as well. Many people like to keep all of their libraries inside of a folder called libs within their project folder.
I'm not sure what "banner" is, but if it's an Android Project it cannot be added as a JAR. Projects that have resources are not able to be fully externally liked libs.
If indeed this is Android Project you will need to import the existing project into your Eclipse workspace here the steps http://developer.android.com/guide/developing/projects/projects-eclipse.html#SettingUpLibraryProject
Create a folder called "libs" in your project.
Go to that folder using Windows Explorer and copy the .jar file there.
Refresh your project in eclipse and right click on the jar file and select "Add to Build Path" option.