All Builds Fails 'linux/user.h' file not found'

Hi Akos,

This was solved.

The issue was caused by the changed made to the NDK here: https://github.com/bitrise-io/bitrise.io/commit/a62cbec806f1662611a9fc7e8cb0ff287402334e#diff-8ad163f79d9960c2636a7d60054d5d9b

It was solved by using the script

#!/usr/bin/env bash
set -ex

# set env vars
export ANDROID_NDK_VERSION='r15b'
export ANDROID_NDK_HOME='/opt/android-ndk'
# expose for subsequent steps
envman add --key ANDROID_NDK_HOME --value "$ANDROID_NDK_HOME"


# ------------------------------------------------------
# --- Android NDK

# clean up if a previous version is already installed
rm -rf "$ANDROID_NDK_HOME"

# download
mkdir /opt/android-ndk-tmp
cd /opt/android-ndk-tmp
wget -q https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip

# uncompress
unzip -q android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip

# move to its final location
mv ./android-ndk-${ANDROID_NDK_VERSION} ${ANDROID_NDK_HOME}

From: How to install a specific Android NDK version on the Android NDK stack

Thanks.

Best regards.

1 Like