Skip to content

Instantly share code, notes, and snippets.

@henrybluecats
Last active March 9, 2021 10:00
Show Gist options
  • Save henrybluecats/33d11f7852b2d24157e9820543f88ede to your computer and use it in GitHub Desktop.
Save henrybluecats/33d11f7852b2d24157e9820543f88ede 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
@vaibhavkulk
Copy link

what about .so files..? I have given the path of jar file. but when I am trying to use classes from that jar file its not getting imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment