importing android library to eclipse downloaded from github - java

i want to download and edit and android library project from github and make jar file again and use it. i want to download and edit this project:
ACRA project
i use eclipse. and my question is that how can i import this source code to eclipse and edit it? i download it and import it to eclipse but its not normal! it has 3 src folder and alot of folders like doc and ... and it has some errors... you know, i want only src folder with library configurations. it seems its a package for not use in development environment!
as you can see in the picture i uploaded, src package is inside some folders and... its not normal not? please help me

Related

Error while importing library in android studio

i'm using android studio to make a chatbot but i get error while importing alice libraries " Can't resolve alicebot"
import org.alicebot.ab.Bot;
import org.alicebot.ab.Chat;
you have to adde the jar files in the lib folder to the library of your android project.
lib folder containing: Ab.jar, commons-codec-1.6.jar, commons-logging-1.1.1.jar, hamcrest-all-1.3.jar, httpclient-4.2.1.jar, httpclient-cache-4.2.1.jar, httpcore-4.2.1.jar, httpmime-4.2.1.jar, jgoodies-common.jar, jgoodies-forms.jar, joda-time-2.1.jar, json-20090211.jar, junit-4.11.jar, sanmoku-0.0.5.jar, sanmoku-feature-ex-0.0.1.jar
The steps below helped me in resolving this similar issue which I was facing in importing these library (to build a chat bot) in Android Studio.
Download this program-ab distribution link
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/program-ab/program-ab-0.0.4.3.zip
(found this link on this site https://howtodoinjava.com/ai/java-aiml-chatbot-example/)
Unzip this to a convenient folder(It did not matter in my case much because we need to later copy and paste but it might depend from pc to pc).
Click on lib folder, you will find Ab.jar file.
Copy this Ab.jar file and follow the next steps available on this link.
How to add a jar in External Libraries in android studio
this did help me. Hope it helps you too.

Which directory do I use to import this Java project?

I have attached a screenshot and I'm trying to import this project into Eclipse but I do not know what directory to select. Here is a screen shot:
In the image what directory do I select during import?
UPDATE:
I've selected the "app" folder and I get the message, "No projects are found to import",
After installing Android Studio (based on IntelliJ) and creating a new project it looks like it's a IntelliJ / Android project not an Eclipse project (there was no .project file). It has the same structure as an IntelliJ project.

Empty SRC folder after import from github

I'm currently working on a groupproject. We're using github to save our code. I have just installed eclipse to work on. I foound to open the project to use import. This has opened the project, except the SRC folder is empty whereas the first SRC folder (the main which was made through github) has several .java files within.
Why is this and how do I go about putting them in. I am unable to work on the code through eclipse at the moment due to this. Thank you, much appreciated.
The easiest way would be to:
clone manually the GitHub repo (in command line)
import the Eclipse project in your Eclipse workpace
Then push to the GitHub repo
Or you can clone the GitHub project through Egit directly,, following this tutorial.
The OP pokeairguy reports in the comments an alternative solution:
create a new project in eclipse like normal.
Then drag the contents of the src folder from GitHub into the folder directory within eclipse.
Then selecting link in the pop up window.
I think it works by thinking its a new project but saves everyone done under the GitHub folder, for GitHub to work.

How do you import and use existing libraries in Eclipse?

I'm Visual Studios / C#, you can simply add a reference to a DLL file and then just use that namespace. I'm starting to dig into Android development and want to use the SimpleFTP library. Downloaded the .jar file, went to File --> Import and now I've got SimpleFTP.class and SimpleFTP.java in org\jibble\simpleftp in my Package Explorer.
But if I try to import org.jibble.simpleftp; it says it cannot be resolved. What have I done wrong?
I was hoping I could just start typing as if I had properly imported the library and it'd figure out how to correct my package, but no such luck =[
There are at least three solutions:
If you have the source code, you can place it under your src folder directly in your project.
If you have the source code, you can create an Android Library Project with the source code and connect your Android app projec to the library project.
If you have a JAR file, you can place it in the libs folder of your proejct.
Project -> Properties -> Java Path -> Libraries. There you can add your existing libraries, in several formats (jar, .zip, etc.).
Right click on your project and add build path

How to import existing files into IntelliJ 10 IDE?

I have used Eclipse before. I changed to IntelliJ. Now I am wondering how to import existing files into IntelliJ 10 IDE. In Eclipse I was used to just drag the directory into the src folder, but I cannot do it here.
IDEA doesn't have such feature, you either set up a project on top of the existing sources or you copy files to the existing project externally, using Finder or your favorite file manager.
Actually you can tell IDEA to open a project and when you get prompted with the file explorer you select the eclipse project file. IDEA will then create it's own specific project files and setup the classpath for you. It's pretty nifty.

Categories