4

Total Android Studio newby here.

Using Android Studio 0.5.9, I successfully created an .arr, now I'm trying to include it in an android app's build.

The sync completes successfully using compile files('libs/scanner-0.1.aar') as can be seen from the image below (or at least I think it completes successfully)

enter image description here

However, when I try to reference any class from the scanner-0.1.aar I get a cannot resolve symbol error as if the classes where not found/loaded.

Any ideas?

fernandohur
  • 7,014
  • 11
  • 48
  • 86

1 Answers1

2

Maybe its too late but this is how it works for me:

-scanner-0.1-aar must be inside app/libs inside your project.

-Your gradle must contain these lines:

repositories{
    flatDir {
        dirs 'libs'
    }
}

   dependencies{
       compile ':scanner-0.1.aar@aar'
   }
Juan José Melero Gómez
  • 2,742
  • 2
  • 19
  • 36