gpt4 book ai didi

android - Gradle :Build failed: error: resource android:attr/fontVariationSettings not found after adding api dependencies com. 微软服务

转载 作者:行者123 更新时间:2023-11-29 23:53:36 28 4
gpt4 key购买 nike

我正在尝试为列表构建 Microsoft Sharepoint 客户端。为此,我使用了 Office365 服务库和 API。我的 gradle 依赖项如下所示:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
api 'com.microsoft.aad:adal:2.0.4-alpha'
api 'com.microsoft.services:sharepoint-services:1.0.0@aar'
api 'com.microsoft.services.orc:orc-android:1.3.1'
api 'com.google.guava:guava:25.1-android'
}

在 gradle synch 期间失败并出现错误:

    error: resource android:attr/fontVariationSettings not found.
Message{kind=ERROR, text=error: resource android:attr/fontVariationSettings not found., sources=[C:\Users\rahul.deshmukh\.gradle\caches\transforms-1\files-
1.1\appcompat-v7-27.1.1.aar\014d6f324620f9879a964fbd74e0b4be\res\values\values.xml:251:5-69],
original message=, tool name=Optional.of(AAPT)}

Gradle 文件显示鼠标悬停错误:

implementation 'com.android.support:appcompat-v7:27.1.1'

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).<br> Found versions 28.0.0-alpha1, 27.1.1. Examples include com.android.support:asynclayoutinflater:28.0.0-alpha1 and com.android.support:animated-vector-drawable:27.1.1 more... (Ctrl+F1)

不确定哪个库与哪个库冲突。任何帮助将不胜感激。

谢谢。

最佳答案

您的一个依赖项正在使用仅在 API 28 (P) 中添加的资源。要么找到该库并使用旧版本,要么将您的编译 SDK 版本更新为“android P 预览版”(您可以使用 SDK 管理器下载它)。

关于android - Gradle :Build failed: error: resource android:attr/fontVariationSettings not found after adding api dependencies com. 微软服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50622632/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com