Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
com.android.ide.common.process.ProcessException:未能执行aapt_Android_Eclipse_Android Gradle Plugin - Fatal编程技术网

com.android.ide.common.process.ProcessException:未能执行aapt

com.android.ide.common.process.ProcessException:未能执行aapt,android,eclipse,android-gradle-plugin,Android,Eclipse,Android Gradle Plugin,我将EclipseAndroid项目迁移到android studio,它具有targetSdkVersion19。现在,我将targetSdkVersion更改为23。现在的问题是Gradle在将com.android.support:appcompat-v7:23.0.1添加到依赖项后显示错误 Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSource

我将EclipseAndroid项目迁移到android studio,它具有
targetSdkVersion
19。现在,我将targetSdkVersion更改为23。现在的问题是Gradle在将
com.android.support:appcompat-v7:23.0.1
添加到依赖项后显示错误

Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]
C:\Users\madhanhere\stories-android\app\build\intermediates\res\merged\debug\values\values.xml
Error:(190) Attribute "theme" has already been defined
Error:(190) Attribute "theme" has already been defined
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:BUILD FAILED
My app.gradle文件:

应用插件:“com.android.application”

android {
    compileSdkVersion 23
    buildToolsVersion "21.0.1"
    useLibrary  'org.apache.http.legacy'

    defaultConfig {
        applicationId "com.ebooks.stories"
        minSdkVersion 18
        targetSdkVersion 23
    }

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

dependencies {
    compile files('libs/core.jar')
    compile files('libs/logentries-android-2.1.2.jar')
    compile files('libs/picasso-2.2.0.jar')
    compile 'com.google.android.gms:play-services:5.+'
    compile 'com.facebook.android:facebook-android-sdk:3.+'
    compile 'com.android.support:appcompat-v7:23.0.1'
}
values.xml文件:

<declare-styleable name="WalletFragmentOptions"><attr format="enum" name="theme">
            <enum name="holo_dark" value="0"/>
            <enum name="holo_light" value="1"/>
        </attr><attr format="enum" name="environment">
            <enum name="production" value="1"/>
            <enum name="sandbox" value="0"/>
            <enum name="strict_sandbox" value="2"/>
        </attr><attr format="reference" name="fragmentStyle"/><attr format="enum" name="fragmentMode">
            <enum name="buyButton" value="1"/>
            <enum name="selectionDetails" value="2"/>
        </attr></declare-styleable>


如何解决这个问题?

我忘了更新
播放服务版本
构建工具版本
。我通过将更新
play serivces
更改为

com.google.android.gms:play-services:6.1.+
buildToolsVersion "23.0.3"
buildToolsVersion

com.google.android.gms:play-services:6.1.+
buildToolsVersion "23.0.3"

尝试使用buildToolsVersion,从23@Nabeel尝试了buildToolsVersion“23.0.3”,但它给出了相同的错误。@NabeelK感谢您的努力,通过change com.google.android.gms:play services:6.1+和buildToolsVersion“23.0.3”解决了这个问题。欢迎您:)