title: How to use local aar inside flutter plugin?
body: <p>I've create a flutter plugin with:</p>
  
  <pre><code>flutter create --template plugin flutter_plugin
  </code></pre>
  
  <p>I've put my aar file inside flutter_plugin/android/src/main/libs folder<br>
  I've modified flutter_plugin/android/build.gradle</p>
  
  <p>and changed rootProject.allprojects section to</p>
  
  <pre><code>rootProject.allprojects {                                                                                               
       repositories {                                                                                                      
           google()                                                                                                        
           jcenter()                                                                                                       
           flatDir {                                                                                                       
               dirs "src/main/libs"                                                                                  
           }                                                                                                               
       }                                                                                                                   
  }  
  </code></pre>
  
  <p>And added dependencies section, after android {}:</p>
  
  <pre><code>dependencies {                                                                                                          
       implementation (name:"mylib",ext:"aar")                                                                     
  } 
  </code></pre>
  
  <p>but when i try running with: flutter run</p>
  
  <p>I get gradle exception, apparently it tried to look for my mylib.aar inside example directory: example/src/main/libs/mylib.aar and failed.</p>
  
  <p>I can put my lib inside example dir, but i don't think it's the right way,
  as i want my aar to be part of the plugin.</p>