title: Applying a library to a sub-project in Android Studio
body: <p>I have a React-Native App that uses a video player component (<code>react-native-video</code>).
  I've had to extend this project for Android to include the ability to load assets from an expansion file so this involved including the <code>android.vending.expansion.zipfile</code> project in the <code>/java/com/</code> folder of the video project.</p>
  
  <p>The video project sits under my main project via the <code>settings.gradle</code>:</p>
  
  <pre><code>include ':RCTVideo', ':app'
  project(':RCTVideo').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android') 
  </code></pre>
  
  <p>and build.gradle file:</p>
  
  <pre><code>compile project(':RCTVideo')
  </code></pre>
  
  <p>I now realise that I will have to add this same functionality to my separate audio component which also sits under my main project in the same way the video component does. </p>
  
  <p>Rather than be re-apply the same project <code>android.vending.expansion.zipfile</code> to my audio component, can I just apply it to my main react-native android project and reference it in the sub-project??!</p>
  
  <p>I'm a little baffled.</p>