title: error: cannot access IBase class file for android.hidl.base.V1_0.IBase not found
body: <p>Android O, AOSP. I'm trying to use an HIDL java library inside an application in <code>frameworks/base</code>.</p>
  
  <p>According to <a href="https://source.android.com/devices/architecture/hidl-java/" rel="nofollow noreferrer">the documentation</a>, I've added the HIDL to <code>Android.mk</code> file:</p>
  
  <pre><code>LOCAL_JAVA_LIBRARIES := vendor.myvendor.mylibrary-V1.0-java
  </code></pre>
  
  <p>In the <code>MainActivity.java</code>, I include it and try to use:</p>
  
  <pre><code>import vendor.myvendor.mylibrary.V1_0.IGood;
  
  public class MainActivity extends Activity {
  
      public void onCreate(Bundle b) {
          super.onCreate(b);
          IGood service;
      }
  }
  </code></pre>
  
  <p>This code compiles without any errors. But when I try to access some methods, e.g.:</p>
  
  <pre><code>import vendor.myvendor.mylibrary.V1_0.IGood;
  
  public class MainActivity extends Activity {
  
      public void onCreate(Bundle b) {
          super.onCreate(b);
          IGood service = IGood.getService();
      }
  }
  </code></pre>
  
  <p>I get an error: </p>
  
  <pre><code>error: cannot access IBase
              IGood server = IGood.getService();
                                  ^
  class file for android.hidl.base.V1_0.IBase not found
  </code></pre>