I was reviewing an automatically generated PR to bump the JNA version on our repo and I saw several CI issues, containing errors like:
ERROR: /home/runner/.gradle/caches/9.2.1/transforms/2800b81311717ffd6b204bc28609c907/transformed/jna-5.19.0-runtime.jar: D8: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26): Lcom/sun/jna/Native;->getWebStartLibraryPath(Ljava/lang/String;)Ljava/lang/String;
Or
Caused by: com.android.tools.r8.internal.g: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26): Lcom/sun/jna/Native$2;->apply(Ljava/util/stream/Stream;)Ljava/lang/Class;
Our app uses minSdk 24, so it was failing to build. I took a look at the latest changes in JNA since 5.18.1 and I couldn't find any that could explain it, since the mentioned code hasn't been changed in years in some cases. I've attached the whole error log:
minSdk26.txt
I was reviewing an automatically generated PR to bump the JNA version on our repo and I saw several CI issues, containing errors like:
Or
Our app uses minSdk 24, so it was failing to build. I took a look at the latest changes in JNA since
5.18.1and I couldn't find any that could explain it, since the mentioned code hasn't been changed in years in some cases. I've attached the whole error log:minSdk26.txt