title: Flutter+Android Studio: Can't resolve Java symbols from external libraries
body: <p>I'm trying to build a Flutter app that also runs custom Java code, so that I can execute code in the background, set alarms etc. As such, I'd like to access Firebase from Java.</p>
  
  <p>I've created a new Flutter project in Android Studio and added Firebase as documented <a href="https://firebase.google.com/docs/android/setup#manually_add_firebase" rel="nofollow noreferrer">here</a> (manually).</p>
  
  <p>It compiles and runs fine on the device, but it seems that the dependency .jars from Gradle are not picked up in Android Studio, and as a result my Java source files show a lot of errors - source being <a href="https://i.stack.imgur.com/BBkxI.png" rel="nofollow noreferrer">"cannot resolve symbol 'google'"</a> in the import statements.</p>
  
  <p>Is there anything special that I need to do in order to have Android Studio pick up external Java dependencies from Gradle in Flutter application projects? I'm running Android Studio 3.0 Beta 7.</p>