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

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

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

leotm
Copy link
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
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.

None yet

1 participant