【发布时间】:2021-04-22 15:22:08
【问题描述】:
我正在尝试将 microsoft-graph-api 更新到 3.3.0,并且在模拟器中一切正常,但真正的设备是 Android 7.0 (API 24),我得到: com.android.tools.r8.a:MethodHandle.invoke 和 MethodHandle.invokeExact 仅支持从 Android O (--min-api 26) 开始
任务“:app:mergeExtDexDebug”执行失败。
无法解析配置“:app:debugRuntimeClasspath”的所有文件。 无法转换 azure-core-1.15.0.jar (com.azure:azure-core:1.15.0) 以匹配属性 {artifactType=android-dex, dexing-enable-desugaring=true, dexing-incremental-transform=false , dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime }。 > DexingNoClasspathTransform 执行失败:/Users/pmartinez/.gradle/caches/transforms-2/files-2.1/8cfc8780442b4f1e0ebead042ade0764/jetified-azure-core-1.15.0.jar。 > dexing 时出错。
3.3.0 的自述文件说,尝试在
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
// To get features from Newer APIs
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
implementation "com.microsoft.identity.client:msal:2.+"
implementation 'com.microsoft.graph:microsoft-graph:3.3.0'
// Uncomment the line below if you are building an android application
implementation 'com.google.guava:guava:29.0-android'
}
关于我可以做些什么来保留图 3 和/或 microsoft-graph 2 最低 Android API 有什么想法?
【问题讨论】:
标签: java android microsoft-graph-api microsoft-graph-sdks