How to use scissors library in Eclipse ADT? - android

I want to use this library for image cropping but I don't know how to include it in an Eclipse project?
https://github.com/lyft/scissors
Can I just copy-paste the classes in some folder or is that against the license?

I've convert this lib into Eclipse compatible project.
Download it from here.
for integrating it into eclipse follow these step:
Unzip file.
Import into eclipse.
Mark Project as library project.
Make sure you are using support library version 22.2.1 or higher from Android SDK Manager. If not update it.
Copy android-support-v4 JAR into libs folder from appcompat_v7 Project (I guess).
Now you're ready to go. Just add this project as library into your desire project.

Start using Android studio, Google has already stopped support for Eclipse (ADT), so it would be better for you to start emphasising on Android studio.
The Github project mentioned is Gradle based, you can either use Eclipse or Android studio to import the project.
Android Studio - You can mention the project's dependancy i.e. compile 'com.lyft:scissors:1.0.3'
in your build.grade and you are good to go.
Eclipse

Related

APIs not available after adding AppProvider JAR dependencies in android studio

After integrating the API lib into my project using the menu item "Add AppProvider SDK Jar dependency" I cannot use any of the classes in my app.
I want to register an IVehicleClientCallback but the IDE cannot import the class.
The lib is contained in the libs folder and should be available for development.
I'm using android studio 2.2.3 in combination with the SDK version 1.0.
The problem is that the gradle script has been updated by the plugin but the IDE did not recognize that and didn't sync the gradle file.
To solve the issue, open the gradle file, make any change (and revert it again) and perform ther gradle sync. Afterwards you should be able to use the library.

Import libraries in Android studio project to Eclipse

I have a Android Studio project and I want the same in Eclipse. So I created a sample project in Eclipse and copied the files in java folder of Android Studio to src folder in Eclipse. I also copy pasted the res and Manifest of Android Studio to Eclipse.
Now, I have some errors in java files in src folder due to some missing libraries. I know its because of the missing libraries in Eclipse and i want to import them from Android Studio project. But in Android project, I am not able to find the libraries. Maybe they are in build.gradle script. How do I get these libraries and use in my Eclipse project?
You can find android jars from your sdk like android-support-design from sdk\extras\android\support\design\libs and do more.
External jars like retrofit, okhttp and more
http://www.java2s.com/Code/Jar/

How to integrate aar library dependency in eclipse for android project

I have develop one library project using android studio [with gradle]. Now i want to integrate my library project in my main project.
I have successfully integrate this project in android studio using maven. But i don't know how to integrate this library project with my main project using eclise IDE. I have search many times in google as well stackoverflow but not found any solution.
So please give me any hint or solution.
Hi As you may know android studio structure is different from eclipse project. if you want to move studio to eclipse there are lots gradle dependencies files generated by android studio, that eclipse never used this files & even eclipse can not understand these all files.
The simplest way is just create the android project in eclipse and copy all your resources directory files( inside you values directory & drawable if you used ) and source files with the keeping the package structure you have in library project & mark the project as library in your project-> properties under the android tab checked the project as library.
In short you have to manually convert the project in eclipse there is not other options for directly convert the studio project in to eclipse.
Thank you.
You can to link aar library as separate project(type this project as library) and make dependence into main project.

Facebook SDK v.4 for Android: errors on Eclipse

I am trying to import the latest version (4.0.1) of the Facebook Android SDK into eclipse but I am facing issues in having the project being properly built and imported as a Library.
I followed the steps (for android studio, ported to Eclipse) provided in the official guide and looked through Google for other developers having the same problems as I am having but I am still not able to have it properly working.
Here are the steps I do:
Download the Facebook SDK for android from here: https://developers.facebook.com/resources/facebook-android-sdk-current.zip
Extract the projects
In Eclipse, import existing Android code into workspace
Select the folder "facebook" and choose the only project that is shown (the project is properly imported)
Right click on "facebook" project, properties, android and check "isLibrary"
clean project
At this point I still have issues for annotations and classes not found from "android.support" package.
Project's setting for Java compiler is "1.6", minSDK is 9 and target is 17.
I tried also to add the facebook library to my main project but it is still not working.
I tried to put java 1.7 in the compiler but it is not resolving the missing classes plus it is saying that to compile with java 1.7 I need to have min API set to kitkat (which I don't want because I will not be able to compile for 4.2 and 4.3).
I added manually the androd support jar from the SDK Manager folder of android and this resolved partially the missing classes but some did remain.
I am using Eclipse Version: Luna Service Release 1 (4.4.1) with JDK 1.7.0_51 and the latest ADT Plugin (all android components updated with SDK Manager).
Any help is appreciated.
I did some more tests and find out that by downloading the two libraries:
android-support-v4.jar
bolts-android-1.1.2.jar
from the github project (https://github.com/facebook/facebook-android-sdk) did the trick.
So the steps are the following:
Download, unpack and import as android existing code into workspace the latest v.4 version of the Facebook SDK for Android.
Download the two jars from GitHub
Set the Facebook Project as "isLibrary"
Add the two jars as "external jars" in the classpath
Set the java compiler to 1.7
clean and rebuild the project
Now errors are gone.
Download the facebook sdk from here.
Extract the zip file.
Import only facebook sdk project into eclipse as "Existing Android code into
workspace".
Now, this project will show many errors, do not open any java file or
resource file and do not try to do any imports or clean project until I
mention it to do so.
First add the v7 library to this project by doing right click on facebook
sdk project >> properties>>android>>Add Library.(If you don't have latest
v7 support library download it from sdk manager), also set the project build
target to the maximum android version available and select "is library".
Now, right click on facebook project and select >Build path>Configure build
path>Libraries tab>Add external jars> browse to place where you extracted
facebook sdk in step 2 and find two jar files in libs folder(android-
support-v4.jar and bolts-android-1.1.2.jar) and add both files. Switch to
"order and export" tab and select both the jar files and click on ok.
Now right click on facebook sdk >>properties>>Java Complier>>set the
"compiler compliance level to 1.7 or more and use default compliance settings.
Now select the project and click on Project > Clean.
This should remove all errors now. This is how it worked for me.
Android Facebook SDK import occurs with errors - Eclipse
Check this out. May be this will help you.
I faced same problem while working in Android Studio.
But you are facing in Eclipse.

Create an Android library project in NetBeans

How can I create an Android library project in NetBeans IDE? The build target would be a JAR for use in another Android project. I've seen the documentation at http://developer.android.com/guide/developing/projects/projects-eclipse.html for creating a library project in Eclipse, but I'm using NetBeans. I do not see an isLibrary property available in the properties for the Android project. If there is not a built-in way to accomplish this, how might I go about manually setting up an Android library project? Forgive me if this is a thick question.
Netbeans is using the standard android project layout (see the features site) and the standard ant-based build. This means that there is a project.properties file in the project's root. A library project has android.library=true in it, along with the android target version (and eventually other android library references). This file can be viewed and opened under Important Files. When cleaning and rebuilding, Netbeans behaves as if this is a lib project (does not create apk etc.)
Otherwise, you could use the SDK android tool (located in $SDK/tools) to generate the lib project on the cmdline and then try to import it into Netbeans somehow.

Categories

Resources