1. 程式人生 > >No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

react-native-image-picker編譯出錯

Process 'command '/Users/wang/Library/Android/sdk/build-tools/25.0.2/aapt'' finished with non-zero exit value 1

解決:

開啟 build.gradle(Module:react-native-image-picker)

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName computeVersionName()
    }
    lintOptions {
        abortOnError false
    }
}

更改版本依賴

android {
    compileSdkVersion 27
    buildToolsVersion "27.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName computeVersionName()
    }
    lintOptions {
        abortOnError false
    }
}