gpt4 book ai didi

android - 资源 'attr/tint' 与配置的重复值

转载 作者:行者123 更新时间:2023-11-29 14:59:48 24 4
gpt4 key购买 nike

我的android项目构建失败,可以构建成功。

构建:同步

../../../.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.0.aar/079f027781f9663d188d9dd5f4f897cd/res/values/values.xml
error: duplicate value for resource 'attr/tint' with config ''. error: resource previously defined here.

整个输出:

build failed 6s 89ms Run build 5s 902ms Load build 27ms Configure build 3s 955ms Calculate task graph 31ms Run tasks 1s 871ms null
Fell back to English for the following translations:
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
null
../../../.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.0.aar/079f027781f9663d188d9dd5f4f897cd/res/values/values.xml
error: duplicate value for resource 'attr/tint' with config ''. error: resource previously defined here.

这是我的依赖。

dependencies {
implementation(name: 'appboy_release', ext: 'aar')
testImplementation 'junit:junit:4.12'
implementation project(':strings')
implementation project(':osp-core')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.facebook.android:facebook-android-sdk:4.18.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:gridlayout-v7:27.1.0'
implementation 'com.android.support:preference-v7:27.1.0'
implementation 'com.android.support:recyclerview-v7:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.google.android.gms:play-services-analytics:12.0.1'
implementation 'com.google.android.gms:play-services-gcm:12.0.1'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.2'
implementation 'com.sprylab.android.texturevideoview:texturevideoview:1.1.1'
implementation 'com.makeramen:roundedimageview:2.2.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.3.0'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.0.1'
implementation 'com.squareup.okio:okio:1.12.0'
implementation 'com.squareup:otto:1.3.3'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.sqlbrite:sqlbrite:0.6.3'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'io.reactivex:rxjava:1.2.5'
implementation 'com.appsflyer:af-android-sdk:4.7.1@aar'
implementation 'javax.annotation:jsr250-api:1.0'
implementation 'com.github.chrisbanes.photoview:library:1.2.4'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
}
implementation('com.twitter.sdk.android:twitter:2.3.1@aar') {
transitive = true
}
implementation project(':loading-widget')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
}

当我将 Android Studio 更新到 3.1 并将 gradle 插件更新到 3.1.0 和 gradle 版本 4.4 (distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all .zip).

在我成功构建它之前。

感谢任何帮助。

最佳答案

对于仍然无法解决这个问题的人:

在您的项目中搜索。你会有这样的东西:

<attr name="tint" format=...... /> (主要用于自定义 View )。

您必须重命名该属性名称,然后它应该可以编译。

关于android - 资源 'attr/tint' 与配置的重复值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49607848/

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