Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting ndk version in android is not working #2574

Closed
hyochan opened this issue Sep 18, 2024 · 1 comment
Closed

Setting ndk version in android is not working #2574

hyochan opened this issue Sep 18, 2024 · 1 comment
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@hyochan
Copy link

hyochan commented Sep 18, 2024

Build/Submit details page URL

No response

Summary

I came across issue in expo/expo#21687 (comment) and tried to set ndk version in android as described in https://docs.expo.dev/eas/json/#ndk. However, setting eas.json like below doesn't change the ndk version of android.

"production": {
      "channel": "production",
      "cache": {
        "disabled": true
      },
      "android": {
        "ndk": "26.2.11394342"
      }
    }

Managed or bare?

dev client

Environment

  expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.6.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v20.13.1/bin/yarn
      npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
      Watchman: 2024.09.09.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.15.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
    IDEs:
      Android Studio: 2024.1 AI-241.18034.62.2411.12169540
      Xcode: 16.0/16A242d - /usr/bin/xcodebuild
    npmPackages:
      expo: ~51.0.31 => 51.0.32 
      expo-router: ~3.5.23 => 3.5.23 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: ~0.75.0 => 0.75.3 
      react-native-web: ~0.19.12 => 0.19.12 
    npmGlobalPackages:
      eas-cli: 10.2.3
      expo-cli: 6.3.10
    Expo Workflow: bare
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check if the project meets version requirements for submission to app stores
✔ Check for app config fields that may not be synced in a non-CNG project
✔ Check native tooling versions
✔ Check Expo config (app.json/ app.config.js) schema
✖ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✖ Check that native modules use compatible support package versions for installed Expo SDK

Detailed check results:

Expected package @expo/config-plugins@~8.0.0
Found invalid:
  @expo/[email protected]
  (for more info, run: npm why @expo/config-plugins)
Expected package metro@~0.80.8
Found invalid:
  [email protected]
  (for more info, run: npm why metro)
Expected package metro-resolver@~0.80.8
Found invalid:
  [email protected]
  (for more info, run: npm why metro-resolver)
Expected package metro-config@~0.80.8
Found invalid:
  [email protected]
  (for more info, run: npm why metro-config)
Advice: Upgrade dependencies that are using the invalid package versions

Error output

[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Execution failed for task ':expo-modules-core:configureCMakeRelWithDebInfo[arm64-v8a]'.
[RUN_GRADLEW] > [CXX1429] error when building with cmake using /private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/CMakeLists.txt: -- The C compiler identification is unknown
[RUN_GRADLEW]   -- The CXX compiler identification is unknown
[RUN_GRADLEW]   -- Configuring incomplete, errors occurred!
[RUN_GRADLEW]   See also "/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a/CMakeFiles/CMakeOutput.log".
[RUN_GRADLEW]   See also "/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a/CMakeFiles/CMakeError.log".
[RUN_GRADLEW]   
[RUN_GRADLEW]   C++ build system [configure] failed while executing:
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/cmake \
[RUN_GRADLEW]         -H/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android \
[RUN_GRADLEW]         -DCMAKE_SYSTEM_NAME=Android \
[RUN_GRADLEW]         -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
[RUN_GRADLEW]         -DCMAKE_SYSTEM_VERSION=23 \
[RUN_GRADLEW]         -DANDROID_PLATFORM=android-23 \
[RUN_GRADLEW]         -DANDROID_ABI=arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
[RUN_GRADLEW]         -DANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 \
[RUN_GRADLEW]         -DCMAKE_ANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 \
[RUN_GRADLEW]         -DCMAKE_TOOLCHAIN_FILE=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
[RUN_GRADLEW]         -DCMAKE_MAKE_PROGRAM=/Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/ninja \
[RUN_GRADLEW]         -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
[RUN_GRADLEW]         -DCMAKE_FIND_ROOT_PATH=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/prefab/arm64-v8a/prefab \
[RUN_GRADLEW]         -B/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a \
[RUN_GRADLEW]         -GNinja \
[RUN_GRADLEW]         -DANDROID_STL=c++_shared \
[RUN_GRADLEW]         -DREACT_NATIVE_DIR=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/react-native \
[RUN_GRADLEW]         -DREACT_NATIVE_TARGET_VERSION=75 \
[RUN_GRADLEW]         -DUSE_HERMES=false \
[RUN_GRADLEW]         -DIS_NEW_ARCHITECTURE_ENABLED=false \
[RUN_GRADLEW]         -DUNIT_TEST=false
[RUN_GRADLEW]     from /private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android
[RUN_GRADLEW]   CMake Error at CMakeLists.txt:3 (project):
[RUN_GRADLEW]     The CMAKE_C_COMPILER:
[RUN_GRADLEW]   
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
[RUN_GRADLEW]   
[RUN_GRADLEW]     is not a full path to an existing compiler tool.
[RUN_GRADLEW]   
[RUN_GRADLEW]     Tell CMake where to find the compiler by setting either the environment
[RUN_GRADLEW]     variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
[RUN_GRADLEW]     the compiler, or to the compiler name if it is in the PATH.
[RUN_GRADLEW]   
[RUN_GRADLEW]   
[RUN_GRADLEW]   CMake Error at CMakeLists.txt:3 (project):
[RUN_GRADLEW]     The CMAKE_CXX_COMPILER:
[RUN_GRADLEW]   
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
[RUN_GRADLEW]   
[RUN_GRADLEW]     is not a full path to an existing compiler tool.
[RUN_GRADLEW]   
[RUN_GRADLEW]     Tell CMake where to find the compiler by setting either the environment
[RUN_GRADLEW]     variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
[RUN_GRADLEW]     to the compiler, or to the compiler name if it is in the PATH. : com.android.ide.common.process.ProcessException: -- The C compiler identification is unknown
[RUN_GRADLEW]   -- The CXX compiler identification is unknown
[RUN_GRADLEW]   -- Configuring incomplete, errors occurred!
[RUN_GRADLEW]   See also "/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a/CMakeFiles/CMakeOutput.log".
[RUN_GRADLEW]   See also "/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a/CMakeFiles/CMakeError.log".
[RUN_GRADLEW]   
[RUN_GRADLEW]   C++ build system [configure] failed while executing:
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/cmake \
[RUN_GRADLEW]         -H/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android \
[RUN_GRADLEW]         -DCMAKE_SYSTEM_NAME=Android \
[RUN_GRADLEW]         -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
[RUN_GRADLEW]         -DCMAKE_SYSTEM_VERSION=23 \
[RUN_GRADLEW]         -DANDROID_PLATFORM=android-23 \
[RUN_GRADLEW]         -DANDROID_ABI=arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
[RUN_GRADLEW]         -DANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 \
[RUN_GRADLEW]         -DCMAKE_ANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 \
[RUN_GRADLEW]         -DCMAKE_TOOLCHAIN_FILE=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
[RUN_GRADLEW]         -DCMAKE_MAKE_PROGRAM=/Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/ninja \
[RUN_GRADLEW]         -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a \
[RUN_GRADLEW]         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
[RUN_GRADLEW]         -DCMAKE_FIND_ROOT_PATH=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/prefab/arm64-v8a/prefab \
[RUN_GRADLEW]         -B/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a \
[RUN_GRADLEW]         -GNinja \
[RUN_GRADLEW]         -DANDROID_STL=c++_shared \
[RUN_GRADLEW]         -DREACT_NATIVE_DIR=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/react-native \
[RUN_GRADLEW]         -DREACT_NATIVE_TARGET_VERSION=75 \
[RUN_GRADLEW]         -DUSE_HERMES=false \
[RUN_GRADLEW]         -DIS_NEW_ARCHITECTURE_ENABLED=false \
[RUN_GRADLEW]         -DUNIT_TEST=false
[RUN_GRADLEW]     from /private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android
[RUN_GRADLEW]   CMake Error at CMakeLists.txt:3 (project):
[RUN_GRADLEW]     The CMAKE_C_COMPILER:
[RUN_GRADLEW]   
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
[RUN_GRADLEW]   
[RUN_GRADLEW]     is not a full path to an existing compiler tool.
[RUN_GRADLEW]   
[RUN_GRADLEW]     Tell CMake where to find the compiler by setting either the environment
[RUN_GRADLEW]     variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
[RUN_GRADLEW]     the compiler, or to the compiler name if it is in the PATH.
[RUN_GRADLEW]   
[RUN_GRADLEW]   
[RUN_GRADLEW]   CMake Error at CMakeLists.txt:3 (project):
[RUN_GRADLEW]     The CMAKE_CXX_COMPILER:
[RUN_GRADLEW]   
[RUN_GRADLEW]       /Users/hyo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
[RUN_GRADLEW] is not a full path to an existing compiler tool.
[RUN_GRADLEW]   
[RUN_GRADLEW]     Tell CMake where to find the compiler by setting either the environment
[RUN_GRADLEW]     variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
[RUN_GRADLEW]     to the compiler, or to the compiler name if it is in the PATH.
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:247)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:113)
[RUN_GRADLEW]           at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:90)
[RUN_GRADLEW]           at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:65)
[RUN_GRADLEW]           at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
[RUN_GRADLEW]           at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:63)
[RUN_GRADLEW]           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[RUN_GRADLEW]           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[RUN_GRADLEW]           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[RUN_GRADLEW]           at java.base/java.lang.reflect.Method.invoke(Method.java:569)
[RUN_GRADLEW]           at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
[RUN_GRADLEW]           at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
[RUN_GRADLEW]           at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
[RUN_GRADLEW]           at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:67)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:45)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
[RUN_GRADLEW]           at org.gradle.internal.Either$Right.fold(Either.java:175)
[RUN_GRADLEW]           at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54)
[RUN_GRADLEW]           at java.base/java.util.Optional.orElseGet(Optional.java:364)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
[RUN_GRADLEW] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:106)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
[RUN_GRADLEW]           at java.base/java.util.Optional.orElseGet(Optional.java:364)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
[RUN_GRADLEW]           at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
[RUN_GRADLEW]           at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
[RUN_GRADLEW]           at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
[RUN_GRADLEW]           at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
[RUN_GRADLEW]           at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
[RUN_GRADLEW]           at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
[RUN_GRADLEW]           at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
[RUN_GRADLEW]           at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
[RUN_GRADLEW]           at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
[RUN_GRADLEW]           at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
[RUN_GRADLEW]           at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
[RUN_GRADLEW]           at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
[RUN_GRADLEW]           at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
[RUN_GRADLEW]           at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
[RUN_GRADLEW]           at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
[RUN_GRADLEW]           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[RUN_GRADLEW]           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[RUN_GRADLEW]           at java.base/java.lang.Thread.run(Thread.java:840)
[RUN_GRADLEW] Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/cmake with arguments {-H/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=23 -DANDROID_PLATFORM=android-23 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_ANDROID_NDK=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_TOOLCHAIN_FILE=/Users/hyo/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/build/intermediates/cxx/RelWithDebInfo/1x6m2f6o/obj/arm64-v8a -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_FIND_ROOT_PATH=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/prefab/arm64-v8a/prefab -B/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/1x6m2f6o/arm64-v8a -GNinja -DANDROID_STL=c++_shared -DREACT_NATIVE_DIR=/private/var/folders/q2/tpc6k_rs3d9d6whwg9g0mbqh0000gn/T/eas-build-local-nodejs/625f794c-dd10-4146-9a32-ca523884bd2e/build/node_modules/react-native -DREACT_NATIVE_TARGET_VERSION=75 -DUSE_HERMES=false -DIS_NEW_ARCHITECTURE_ENABLED=false -DUNIT_TEST=false}
[RUN_GRADLEW]           at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
[RUN_GRADLEW]           at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
[RUN_GRADLEW]           at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277)
[RUN_GRADLEW]           ... 141 more
[RUN_GRADLEW]   Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/hyo/Library/Android/sdk/cmake/3.22.1/bin/cmake'' finished with non-zero exit value 1
[RUN_GRADLEW]           at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
[RUN_GRADLEW]           at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
[RUN_GRADLEW]           ... 142 more
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 2m 18s

Reproducible demo or steps to reproduce from a blank project

I think this would depend on the machine and I am not sure why my machine builds well with ndk 26.2.11394342.

  1. Create expo project
  2. Run eas build --profile production --platform android
@hyochan hyochan added the needs review Issue is ready to be reviewed by a maintainer label Sep 18, 2024
@szdziedzic
Copy link
Member

Hi, @hyochan

We only support installing custom tools versions, like NDK, Node, yarn, and so on, when using cloud builders. It's not supported for local build, because we don't want to install/override any tools on your personal device to not break your setup. You need to install the custom ndk version manually before starting the --local build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants