gpt4 book ai didi

android - React-native ERROR : In FontFamilyFont, 无法找到属性 android:fontVariationSettings

转载 作者:行者123 更新时间:2023-11-29 23:04:44 24 4
gpt4 key购买 nike

错误:在 FontFamilyFont 中,无法找到属性 android:fontVariationSettings错误:在 FontFamilyFont 中,无法找到属性 android:ttcIndex

失败:构建失败,出现异常。

  • 出了什么问题:任务 ':react-native-push-notification:processReleaseResources' 执行失败。

    com.android.ide.common.process.ProcessException: Failed to execute aapt

最佳答案

在尝试了很多解决方案之后,终于为我解决了这个问题。

  1. 将您的 react-native-push-notification 版本降级为“2.0.1”
  2. 在 android/build.gradle 中添加这些行

所有项目{

repositories {
...
}

configurations.all {

resolutionStrategy.eachDependency {
DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.google.android.gms') {
details.useVersion '15.0.0'
}
}
}
}

3。最后,运行 react-native run-android。你很高兴去......

关于android - React-native ERROR : In <declare-styleable> FontFamilyFont, 无法找到属性 android:fontVariationSettings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56668538/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com