2015/11/16

Android 23.0.0 res build error



D:\tfs1\BokerAndroidForStudio\Boker_Navigation\NavigationMapLib\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v23\values-v23.xml
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':NavigationMapLib:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\adt-bundle-windows\sdk\build-tools\20.0.0\aapt.exe'' finished with non-zero exit value 1


android {
    compileSdkVersion 23 //將 compileSdkVersion 替換成23版以上
    buildToolsVersion "23.0.1" //及 buildToolsVersion 替換成23.0.1版以上即可

    defaultConfig {
        minSdkVersion 15
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
}

1 則留言: