Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasyjean/2218f6ea4debe88838a9a4c20cd344a1 to your computer and use it in GitHub Desktop.
Save tasyjean/2218f6ea4debe88838a9a4c20cd344a1 to your computer and use it in GitHub Desktop.
How to integrate .aar file to Eclipse

How to integrate .aar file to Eclipse

  • Download .aar file from bintray, you will get an .aar file: bluecats-android-sdk-${version}.aar
  • Change the extension to .zip from .aar, and unzip it into bluecats-android-sdk folder, for example.
  • In the folder bluecats-android-sdk, you will see a .jar file: classes.jar, change the name to a meaningful name, like bluecats-android-sdk.jar, copy it to your Eclipse project's "libs" folder.
  • In the folder bluecats-android-sdk/jni, you will see several ABI folders, copy all the folders into your Eclipse project's "libs" folder.
  • Your "libs" folder of eclipse project looks like this:
libs/
    bluecats-android-sdk.jar
    armebi/
          libbluecats_sdk.so
    armebi-v7a/
              libbluecats_sdk.so
    ...
    ...
    ...
  • Add bluecats-android-sdk.jar to your build path of eclipse project.
  • Merge manually the AndroidManifest.xml into your own AndroidManifest.xml to include the permission and service declarations.
  • add necessary 3rd party libraries: Gson, android Support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment