Skip to content

Match Ubuntu NDK (21) to aarch64/M1 (25 rc2)#578

Draft
leotm wants to merge 17 commits intomasterfrom
ci/ubuntu-ndk-25-rc2
Draft

Match Ubuntu NDK (21) to aarch64/M1 (25 rc2)#578
leotm wants to merge 17 commits intomasterfrom
ci/ubuntu-ndk-25-rc2

Conversation

@leotm
Copy link
Copy Markdown
Owner

@leotm leotm commented May 3, 2022

NDK 23 found (last 2 commits)

/usr/local/lib/android/sdk/ndk: 21.4.7075529, 22.1.7171670, 23.1.7779620


NDK 25 rc2 downloaded, not found

> Configure project :app
Observed package id 'ndk;21.4.7075529' in inconsistent location '/usr/local/lib/android/sdk/ndk-bundle' (Expected '/usr/local/lib/android/sdk/ndk/21.4.7075529')
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/usr/local/lib/android/sdk/ndk-bundle' (Expected '/usr/local/lib/android/sdk/ndk/21.4.7075529')
Warning: Observed package id 'ndk;21.4.7075529' in inconsistent location '/usr/local/lib/android/sdk/ndk-bundle' (Expected '/usr/local/lib/android/sdk/ndk/21.4.7075529')

Warning: IO exception while downloading manifest:

Ubuntu defaulting

  • ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529
  • ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk-bundle -> /usr/local/lib/android/sdk/ndk/21.4.7075529

Solutions

  • rm -rf /usr/local/lib/android/sdk/ndk-bundle - prevent side-by-side 21 detection
  • w/o ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}, likely fail to find /usr/local/lib/android/sdk/ndk/25.x.x
  • ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} should work
  • cp -rf ${{ steps.setup-ndk.outputs.ndk-path }} /usr/local/lib/android/sdk/ndk/25.x.x - should work too
  • cp -rf ${{ steps.setup-ndk.outputs.ndk-path }} /usr/local/lib/android/sdk/ndk-bundle - should work too

Spotted in https://github.com/leotm/react-native-template-new-architecture/runs/6261011482?check_suite_focus=true#step:7:62

Missed in #276

Use Groovy var later

@leotm leotm added the ci GitHub Actions workflow - Bundling / Building / Compiling / Integrating / Testing label Jun 27, 2022
@leotm leotm force-pushed the master branch 2 times, most recently from 0042906 to 53b71dc Compare October 30, 2025 21:36
@leotm leotm force-pushed the master branch 5 times, most recently from 3351c06 to 5414885 Compare February 5, 2026 15:28
@leotm leotm force-pushed the master branch 2 times, most recently from bf0c011 to edd8214 Compare February 18, 2026 18:14
@leotm leotm force-pushed the master branch 4 times, most recently from bd15b3d to e13caf2 Compare March 3, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub Actions workflow - Bundling / Building / Compiling / Integrating / Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant