gpt4 book ai didi

android - 在 React-Native 中找不到 RCTConvert.h 文件

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:29:37 25 4
gpt4 key购买 nike

我想使用 FastImage 模块。( https://github.com/DylanVann/react-native-fast-image )

但是当我构建它时它不起作用。

我安装了 npm 和 react-native 链接。

但是当我在 iOS 和 Android 中构建时,出现错误。


iOS RCTConvert+FFFastImage.h 错误

RCTConvert.h' file not found


Android 错误。

Error:Cannot choose between the following configurations of project :react-native-fast-image: - debugApiElements - debugRuntimeElements - releaseApiElements - releaseRuntimeElements All of them match the consumer attributes: - Configuration 'debugApiElements': - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-api' but wasn't required. - Configuration 'debugRuntimeElements': - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-runtime' but wasn't required. - Configuration 'releaseApiElements': - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-api' but wasn't required. - Configuration 'releaseRuntimeElements': - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-runtime' but wasn't required.

首先,我在 stackoverflow 中尝试了很好的答案。
( React Native / Xcode Upgrade and now RCTConvert.h not found )

但这对我不起作用。我在 github 的 FastImage 上创建了问题,但是没有答案所以我还不能关闭。 ( https://github.com/DylanVann/react-native-fast-image/issues/117 )

我需要帮助..

我的规范。

{
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"test": "node ./node_modules/jest/bin/jest.js --watch"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/samples": "2.1.1",
"expo": "^24.0.0",
"react": "16.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz",
"react-native-fast-image": "^2.0.1",
"react-native-masonry": "^0.4.5",
"react-native-scalable-image": "^0.2.2",
"react-navigation": "^1.0.0-beta.21"
},
"devDependencies": {
"jest-expo": "^24.0.0"
}

Xcode 版本。 9.2安卓工作室。 3.0.1

最佳答案

在您的库的build设置 -> 标题搜索路径中添加路径/项目文件夹/ios/Pods/Headers/Public 作为递归。问题将得到解决

关于android - 在 React-Native 中找不到 RCTConvert.h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48160952/

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