簡體   English   中英

編譯SDK版本時出錯?

[英]Error in compile SDK version?

誰能告訴我如何解決此錯誤:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion '21.1.2'
    defaultConfig {
        applicationId "com.example.abhishek.detector"
        minSdkVersion 10
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.google.android.gms:play-services-location:8.1.0'
}

錯誤:錯誤:任務':app:processDebugResources'的執行失敗。

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:處理'command'C:\\ Users \\ hp-pc \\ AppData \\ Local \\ Android \\ sdk \\ build-tools \\ 21.1.2 \\ aapt.exe''以非零退出值1結束

安裝最新版本的構建工具。 調整您的build.gradle以使用

`buildToolsVersion "23.0.2"`

或檢查並從列表中刪除重復的依賴項。

請享用 :)

從values / string.xml更改sdk版本

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM