我有一个旧的react native应用程序,更新了Mac后已停止构建
react-native run-android之后的错误是,我不知道可能是什么问题。谁能帮我吗?
...
:react-native-device-info:compileReleaseRenderscript
:react-native-device-info:generateReleaseBuildConfig
:react-native-device-info:generateReleaseResValues
:react-native-device-info:generateReleaseResources
:react-native-device-info:mergeReleaseResources
:react-native-device-info:processReleaseManifest
:react-native-device-info:processReleaseResources
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
ERROR: In <declare-styleable> GradientColor, unable to find attribute android:endX
ERROR: In <declare-styleable> GradientColor, unable to find attribute android:endY
ERROR: In <declare-styleable> GradientColor, unable to find attribute android:startX
ERROR: In <declare-styleable> GradientColor, unable to find attribute android:startY
ERROR: In <declare-styleable> GradientColorItem, unable to find attribute android:offset
:react-native-device-info:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-device-info:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
我的build.gradle有
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "**********"
minSdkVersion 16
targetSdkVersion 26
versionCode 10
versionName "1.10"
ndk {
abiFilters "armeabi-v7a", "x86"
}
multiDexEnabled true
}