title: com.android.tools.r8.a: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)
body: <p>implementation 'org.apache.poi:poi:5.0.0'</p>
  <p>above dependencies work fine when I run on the emulator/phone using Run 'app' but
  when I try to build apk then I got the below error.</p>
  <p>com.android.tools.r8.a: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)</p>
  <p>I try below</p>
  <ol>
  <li><p>if I remove dependencies it works fine.</p>
  </li>
  <li><p>if I update minSdkVersion 21 to 26 then it works fine.</p>
  </li>
  </ol>
  <p>so my problem is
  I want to use minsdkversion 21 and also that dependency(this feature(EXCEL FILE) only available to sdkversion&gt;=26)</p>
  <p>so how can I achieve the same?</p>
  <p>THANK YOU IN ADVANCE.</p>