Android Build Failed in MacOS
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, cpp, react-native
调研方向
Start by reproducing with yarn dev and run npx react-native doctor. Compare the effective minSdkVersion used by the Android build with the values in build.gradle, then inspect react-native-worklets-core/android/CMakeLists.txt and the reported fabricjni configuration. Done means the mismatch is explained and the project builds successfully with the listed React Native versions.
由索引模型根据 Issue 内容生成。
描述
SDK Version Mismatch in React Native Project
Description
After installing the package and attempting to run yarn dev, I'm encountering an error related to SDK version mismatch. The error message suggests a discrepancy between the user's minSdkVersion and the library's build version.
Error Message
> Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a] FAILED
C/C++: /Users/promethean/testProject/testProject/node_modules/react-native-worklets-core/android/CMakeLists.txt debug|arm64-v8a : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //ReactAndroid/fabricjni. Rejected the following libraries:
> Task :app:compileDebugKotlin
48 actionable tasks: 12 executed, 36 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
Note: /Users/promethean/testProject/testProject/node_modules/react-native-worklets-core/android/src/main/java/com/worklets/WorkletsPackage.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-worklets-core:configureCMakeDebug[arm64-v8a]'.
> [CXX1214] /Users/promethean/testProject/testProject/node_modules/react-native-worklets-core/android/CMakeLists.txt debug|arm64-v8a : User has minSdkVersion 22 but library was built for 23 [//ReactAndroid/fabricjni]
Project Configuration
My build.gradle file includes the following configuration:
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.22"
}
Expected Behavior
Given that my minSdkVersion is set to 26, which is higher than both the error-mentioned versions (22 and 23), I expected the project to build without SDK version conflicts.
Actual Behavior
The build process fails, reporting a mismatch between the user's SDK version (reportedly 22) and the library's build version (23), despite the build.gradle file specifying a minSdkVersion of 26.
Environment
"react": "18.2.0",
"react-native": "0.74.5",
"react-native-worklets-core": "^1.3.3"
"node-version": 20.12.2
Steps to Reproduce
- Install the package (
react-native-worklets-core) - Run
yarn dev
- 主要语言
- C++
- 星标
- 791
- 派生
- 66
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
margelo/react-native-worklets-core 的其他 Issue
-
Worklets without captured variables are rejected as "Regular javascript function" when transpiled by react-native-worklets' Babel plugin可能已有人在做 @wn-na 于 4 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 35/100
margelo/react-native-worklets-core#271 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
margelo/react-native-worklets-core#269 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
margelo/react-native-worklets-core#268 · 2 条评论 ·
查看 margelo/react-native-worklets-core 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
ArduCAM/Arducam_tof_camera#125 ·
-
难度 2/5 1-3 小时 新手友好度 87/100
maplibre/maplibre-native#4822 ·
维护者通常 1 天内回复
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
ai_p2 comp-datalake
难度 2/5 1-3 小时 新手友好度 76/100
ClickHouse/ClickHouse#127437 ·
维护者通常 1 天内回复