biokys / cropimage

Replacement for deprecated official Android crop image function
555 stars 292 forks source link

Could not import lib to eclipse #46

Open ralfrosche opened 10 years ago

ralfrosche commented 10 years ago

HI, i was trying to get the lib working for my project. I tried sevarl mthods to import the lib porject or the lib into libs to buildpath etc. ma app was compiling with no errors but console says did not find class or did not find R$Layout. The example app runs fine, compiling using eclipse with adt. Please can you advice to get it working? regards

swiven commented 10 years ago

To:ralfrosche sorry late.. import simple-crop-image-lib. 1.In Eclipse , Import Existing Android Code Into Workspace. then select simple-crop-image-lib ( download zip, open it, you can see simple-crop-image-lib folder )

2.In your project,click right -> Properties -> Android -> Library : Add simple-crop-image-lib

you can use it.

ralfrosche commented 10 years ago

Hi, i did that but there was an other strang behavior.. i solved the problem, It was a buildpath error. At least i had to remove the project.properties, Restart eclipse (told me that proejct.properties is missing) saved project, exit eclipse and copy an old project.properties file from backup repository to the project rep. Very strange but now i could see the green checkmark in the project->properties-Android->Library for the simple.crop-image-lib. Thanks for your help. Ralf

ralfrosche commented 10 years ago

solved and may be closed

hs9021401 commented 9 years ago

Sorry, And Android Studio? How to import the library??

Aman5692 commented 9 years ago

After Importing simple-crop-image-lib project as library project in eclipse i get two errors in CropImage.java file error1:(Line 122)SDK_INT cannot be resolved or is not a field error2:(Line 123) LAYER_TYPE_SOFTWARE cannot be resolved or is not a field Can somebody advice how to remove these errors.