修复安卓build失败的问题
原因:第三方库自动更新build.gradle
配置信息,yarn install
之后对应信息更改,无法正常build
成功,会报错误
Android resource linking failed
/Users/user/github/p8hApp/android/app/build/intermediates/incremental/mergeDevelopmentXiaomiDebugResources/merged.dir/values/values.xml:2296: error: resource android:attr/fontVariationSettings not found.
/Users/user/github/p8hApp/android/app/build/intermediates/incremental/mergeDevelopmentXiaomiDebugResources/merged.dir/values/values.xml:2296: error: resource android:attr/ttcIndex not found.
error: failed linking references.
解决方法:android/
文件夹中build.gradle
添加
project.ext {
googlePlayServicesVersion = "15.0.0"
}