任务执行失败':app:processDebugResources',\ build-tools \ 23.0.3 \ aapt.exe''以非零退出值1完成,而android Build

时间:2016-07-26 12:02:57

标签: android android-studio android-gradle build.gradle android-studio-2.1

我正在努力编译&使用Android studio最新版本构建我的项目,该版本具有许多依赖模块,如下所示:

  • FacebookSDK
  • OneMobi
  • VkOpenAuthActivity
  • Android支持lib V4 - 23.3.0
  • Android Google地图(最新)
  • App(项目模块)

Android插件版本: - 2.1.2
Gradle Build Ver: - 2.10

在构建期间,所有模块都是编译和放大的。除App平台外,构建成功。我还通过每个模块独立编译来检查它在APP模块中的显示错误。

请告诉我构建文件中缺少的位置,或者我必须查看我的.xml文件。

请参阅以下详细错误日志:

:app:processDebugResources
AGPBI: {"kind":"error","text":"Attribute \"titleTextStyle\" has already been defined","sources":[{"file":"C:\\Users\\user\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":422}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"subtitleTextStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":422}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"divider\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":422}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"background\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":422}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"backgroundSplit\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":422}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"navigationMode\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"displayOptions\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"title\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"subtitle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"icon\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"logo\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"backgroundStacked\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"customNavigationLayout\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"homeLayout\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"progressBarStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"indeterminateProgressStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"progressBarPadding\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"itemPadding\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":463}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"initialActivityCount\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":466}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"expandActivityOverflowButtonDrawable\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":466}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"preserveIconSpacing\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":469}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"iconifiedByDefault\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":476}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"queryHint\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":476}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowActionBar\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowNoTitle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowActionBarOverlay\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowActionModeOverlay\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowMinWidthMajor\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"windowMinWidthMinor\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarTabStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarTabBarStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarTabTextStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionOverflowButtonStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarSplitStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarWidgetTheme\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarSize\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarDivider\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionBarItemBackground\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionMenuTextAppearance\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionMenuTextColor\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeCloseButtonStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeBackground\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeSplitBackground\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeCloseDrawable\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModeShareDrawable\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionModePopupWindowStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textAppearanceLargePopupMenu\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textAppearanceSmallPopupMenu\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionDropDownStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"dropdownListPreferredItemHeight\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"spinnerDropDownItemStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"homeAsUpIndicator\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"actionButtonStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"selectableItemBackground\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"dividerVertical\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"activityChooserViewStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"popupMenuStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textAppearanceSearchResultTitle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textAppearanceSearchResultSubtitle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textColorSearchUrl\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"listPreferredItemHeightSmall\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"listPreferredItemPaddingLeft\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"listPreferredItemPaddingRight\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"dropDownListViewStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"listPopupWindowStyle\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"textAppearanceListItemSmall\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"buttonStyleSmall\" has already been defined","sources":[{"file":"C:\\Users\\user1\\Documents\\app\\Project Workspace\\appExploreStudion\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":489}}],"original":"","tool":"AAPT"}

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\user1\AppData\Local\Android\Sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

仅供参考我还在下面提供所有build.gradle文件内容:

主要应用程序 - build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

App.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        applicationId "com.visa.asiapacific"
        minSdkVersion 19
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile project(':facebookSDK')
    compile project(':vKOpenAuthActivity')
    compile project(':onemobi_4_prod')
    compile files('libs/AF-Android-SDK-v3.3.0.jar')
    compile files('libs/AutoNavi_Android_Location_V1.0.5.jar')
    compile files('libs/AutoNavi_Android_Map_3d_2.2.0.jar')
    compile files('libs/AutoNavi_Android_Services_3d_2.2.0.jar')
    compile files('libs/localytics.jar')
    compile files('libs/Sina_Weibo_sdkcore.jar')
    compile files('libs/Tencent_Wechat_sdk.jar')
    compile files('libs/Tencent_Weibo_sdk.jar')
    compile files('libs/Tencent_Weibo_sdk_component.jar')
    compile files('libs/VK_commons-httpclient-3.0.1.jar')
    compile 'com.google.android.gms:play-services:9.2.1'
    compile 'com.google.android.gms:play-services-ads:9.2.1'
    compile 'com.google.android.gms:play-services-auth:9.2.1'
    compile 'com.google.android.gms:play-services-gcm:9.2.1'
}

facebookSDK.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.3.0'
    compile files('libs/bolts-android-1.1.2.jar')
}

onemobi.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.3.0'
    compile files('libs/OneMobi.jar')
}

VkOpenAuthActivity.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.3.0'
    compile files('libs/httpclient-4.2.jar')
    compile files('libs/httpcore-4.4.4.jar')
}

我正在努力解决此表格日期,非常感谢您的帮助。

谢谢, Jalp

1 个答案:

答案 0 :(得分:0)

就我而言 -

  

多个库项目声明相同的自定义属性名称   导致冲突。

     

使用不同的构建工具&编译版本也会导致   这里冲突,因为我使用build-tool ver - 24并使用编译我的应用程序   ver - 23.0.3。所以我做到了   (compileSdkVerison / buildToosVersion / targetSdkVersion)as - 24.另外   确保使用相同版本的支持&如果您使用谷歌库   用于地图,向后兼容等。

解决此类问题时需要注意的事项,请在下面查看清单:

  • 检查您的compileSdkVersion,buildSdkVersion& targetSdkVersion依赖项,它不应该相互冲突。如果您使用的是compileSdk - 24,那么请确保您使用的构建版本也类似于24.x.x.在大多数情况下,您的compileSdkVersion应与targetSdkVersion匹配。

  • 如果您使用多个自定义库/模块,那么在将项目编译为整个应用程序时,请确保您的自定义资源不会发生冲突。

  • 在创建自定义样式/主题时,请确保使用自定义特定前缀定义属性,例如 - 对于我的lib项目cacheLib,您将属性定义为<attr name="cacheLib_background" format="reference" />,以便此属性不会与现有属性冲突android SDK提供的属性。