Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Android Build Failed in MacOS

オープン
#212 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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

  1. Install the package (react-native-worklets-core)
  2. Run yarn dev
主要言語
C++
スター
791
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

margelo/react-native-worklets-core のほかの issue

margelo/react-native-worklets-core の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。