Alex
Alex

Reputation: 21

Import emojicon Library Into Android Studio

https://github.com/ankushsachdeva/emojicon

How do I add this library into Android Studio so that I can use it in my project. Usually I add a line into my build.gradle file?

Upvotes: 2

Views: 2977

Answers (1)

Atul
Atul

Reputation: 4340

I had faced same problem recently. I know it is too late to answer this. However, I am still sharing my findings in case if someone finds it useful in future:

  1. Download 'emojicon':

    Download source from here. Lets say you've downloaded it in D:\Emojicon

  2. Import library D:\Emojicon\lib to your project:

    In Android Studio go to File->Project Structure then click on '+' symbol. From the dialog box pops up choose appropriate option to import library. (For e.g. on my system I have Android Studio 2.1.2, it shows me "Create New Module" dialog then I choose "Import Eclipse EDT Project")

    Then select D:\emojicon\lib to import emojion library to your project. It will copy emojicon project to your project.

  3. Set dependency:

    Then click on Dependencies tab (in dialog options box from File->Project Structure). From the list that appears on left side, click on your project under modules. You will see all your project dependencies. Now click on '+' symbol from top right corner and select "Module dependency". The dialog next will show "lib" as module. Just select that and click OK to close dialog. Close Project Structure dialog also. That's it! You have successfully imported emojicon library and have set its dependency.

  4. Implement:

    Now refer example project to see how to use emojicon in your project (Its basically using EmojiconEditText and EmojiconEditView instead of EditText and TextView)

Upvotes: 7

Related Questions