android - Android Studio 2.3.1 错误:(155) Original attribute defined here,

标签 android android-studio

依赖关系{ 编译文件树(dir: 'libs', include: ['*.jar'])

compile 'com.android.support:design:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:preference-v7:25.3.1'
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'ch.acra:acra:4.9.2'
compile 'com.github.yukuku:ambilwarna:2.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'


testCompile 'junit:junit:4.12'
}

这是 gradle 依赖代码。我收到此类错误。 当我单击此错误时,代码显示。无法找到元素“recources”的减速。 D:\AndroidProjects\Tech\app\build\intermediates\res\merged\debug\values\values.xml 错误:(360) 属性“navigationMode”已经用不兼容的格式定义。

Error:(155) Original attribute defined here.

Error:(367) Attribute "displayOptions" already defined with incompatible format.

Error:(687) Attribute "backgroundTintMode" already defined with incompatible format.

Error:(367) Attribute "displayOptions" already defined with incompatible format.

Error:(360) Attribute "navigationMode" already defined with incompatible format.

Error:(419) Attribute "actionBarSize" already defined with incompatible format.

Error:(70) Original attribute defined here.

Error:(482) Attribute "buttonTintMode" already defined with incompatible format.

Error:(7) Original attribute defined here.

Error:(102) Original attribute defined here.

Error:(576) Attribute "showDividers" already defined with incompatible format.

Error:(360) Attribute "navigationMode" already defined with incompatible format.

Error:(184) Original attribute defined here.

Error:(601) Attribute "showAsAction" already defined with incompatible format.

Error:(191) Original attribute defined here.

Error:(52) Original attribute defined here.

Error:(155) Original attribute defined here.

Error:(102) Original attribute defined here.

Error:(419) Attribute "actionBarSize" already defined with incompatible format.

Error:(7) Original attribute defined here.

Error:(482) Attribute "buttonTintMode" already defined with incompatible format.

Error:(70) Original attribute defined here.

Error:(576) Attribute "showDividers" already defined with incompatible format.

Error:(191) Original attribute defined here.

Error:(601) Attribute "showAsAction" already defined with incompatible format.

Error:(184) Original attribute defined here.

Error:(687) Attribute "backgroundTintMode" already defined with incompatible format.

Error:(52) Original attribute defined here.

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

最佳答案

你和其他控件有相同的属性名,修改你自定义控件的属性名。

关于android - Android Studio 2.3.1 错误:(155) Original attribute defined here,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44020696/

相关文章:

java - 如何在 Android Studio 中从 AsyncTask 获取数组值到其他方法

android - 我需要帮助将多个图像和文本添加到我的 android 按钮

安卓工作室 3.2 "No target device found"

android - 来自 AndroidManifest 的属性提供者 FirebaseInitProvider 和 FacebookInitProvider 也出现在 AndroidManifest

c# - 使用新的签名功能自动化 Gradle 构建和签名

android - 更新到 Android Studio 2.2/gradle 插件 2.2.0 : "could not get unknown property ' assembleRelease'"后

android - 为什么 Android Studio 安装程序会将 Android SDK 放入 %USER% 文件夹中?

java - 将 Java 文件转换为 Kotlin 现在无法编译 - "Internal compiler error"

android - 谷歌登录错误 12500

Android 导致简单的 BMI 应用程序崩溃