android - How to add AAR library in project with New Build System? -


How to add AAR library to Android Studio 1.0? I search about this and I am getting a position where I am saying that I should put the Library file in the Libs folder. But this does not work This library is for internal use and is never published in open access file build. This line is in the kernel:

  compat fileTree (dir: 'libs', It includes: ['* .aar', '* .jar'])  

But the resource can not be found from the Studio Library. I have tried to add it manually:

  compile (name: 'somelib-1.32', ext: 'aar')  

and When I get this error:

  "error: failed to search :: somelib-1.32:"  

How to fix it?

build system - , not very well managed for res files Does

Change it by _ or Camelkas, so become somelib-1.32.aar become somelib_1.32.aar

Edit: flatDirs [...] in your project build.gradle

  all projects {repositories {jcenter () flatDir {dirs 'libs'}}}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -