Add .aar files as plain resources

  1. Add the .aar files to an appropriate folder (for example, libs).
  2. Define the path to the folder in the build.gradle file. For example:
    allprojects { repositories { flatDir { dirs '
    <path_to_libs_folder>
    ' } //other maven URLs ... } }
  3. Add the 
    Gradle
     dependencies. For example:
    compile ( name : 'android_handheld_platform-5.0.0.47' , ext : 'aar' )