title: Unable to import ActivityChooserModel
body: <p>For some reason, I am unable to access the <a href="https://android.googlesource.com/platform/frameworks/support/+/e5c90287061d47f5ac9244dcc819778d4df9667c/v7/appcompat/src/android/support/v7/internal/widget/ActivityChooserModel.java" rel="nofollow"><code>ActivityChooserModel</code></a> class in my Android activity. I am trying to access it as follows:</p>
  
  <pre><code>ActivityChooserModel dataModel = ActivityChooserModel.get(this, ShareActionProvider.DEFAULT_SHARE_HISTORY_FILE_NAME);
  </code></pre>
  
  <p>But when I try to build the project I get the following:</p>
  
  <pre><code>cannot find symbol class ActivityChooserModel
  </code></pre>
  
  <p>I have attempted using both of the following imports, but neither of them works:</p>
  
  <pre><code>import android.widget.ActivityChooserModel;
  import android.support.v7.internal.widget.ActivityChooserModel;
  </code></pre>
  
  <p>This is especially frustrating because in Android Studio I can open <code>ActivityChooserModel.java</code> and I can see that it is a public class. My activity is using a <code>ShareActionProvider</code> and importing it with no problems, and when I browse through the SDK source I can clearly view both that class and <code>ActivityChooserModel</code> so I have no idea why I'm not able to access it.</p>
  
  <p>Here is a snippet of my <code>build.gradle</code>, although I'm not sure if related:</p>
  
  <pre><code>android {
      compileSdkVersion 22
      buildToolsVersion '22.0.1'
  
      defaultConfig {
          minSdkVersion 16
          targetSdkVersion 22
      }
  }
  </code></pre>
  
  <p>Thanks a lot!</p>