title: Using Room-Guava in Android, cannot find ListenableFuture
body: <p>I'm following this:
  <a href="https://developer.android.com/training/data-storage/room/async-queries" rel="nofollow noreferrer">https://developer.android.com/training/data-storage/room/async-queries</a></p>
  <p>I'm trying to use <strong>ListenableFuture</strong> from Guava, so I included <strong>androidx.room:room-guava</strong> but Android Studio keeps complaining that &quot;<em>Cannot resolve symbol 'ListenableFuture'</em>&quot; and doesn't suggest any relevant <code>import</code>.</p>
  <p>What is the correct <code>import</code> to include in Java source?</p>
  <p>Here is my code:</p>
  <hr />
  <p><strong>build.gradle(:app)</strong></p>
  <pre><code>...
  // Guava support for Room, including Optional and ListenableFuture
  implementation &quot;androidx.room:room-guava:2.4.3&quot;
  </code></pre>
  <hr />
  <p><strong>Java DAO interface</strong></p>
  <pre><code>import androidx.room.Dao;
  import androidx.room.Insert;
  
  @Dao
  public interface PressureMeasureDao
  {
      @Insert
      public ListenableFuture&lt;Integer&gt; insertPressureMeasure(PressureMeasure pressureMeasure);
  }
  </code></pre>