React Native-构建版本失败

时间:2018-09-22 12:04:52

标签: android react-native

我正在尝试为Android构建发行版APK

使用

 gradlew assembleRelease

输出

\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\51d2ebde8fc2c987e41e4e8d648ee1a8\res\values-v26\values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

build.gradle

ext {
        buildToolsVersion = "27.0.3"
        minSdkVersion = 16
        compileSdkVersion = 27
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
    }

package.json

"react": "16.5.0",
"react-native": "0.57.1"

1 个答案:

答案 0 :(得分:0)

如果您使用的是Windows,请尝试降级到React 0.55、0.54。