Ndk file not found but then it executes


#1

I’m getting weird outputs when running ndk, I added it as a submodule and it’s in my environment path. Yet when running I get 1 a not found error but then the executable runs.

#!/bin/bash -eo pipefail
ndk-build
/home/circleci/project/android-ndk-r10d/ndk-build: 158: /home/circleci/project/android-ndk-r10d/ndk-build: file: not found
/bin/sh: 1: file: not found
Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.    
/home/circleci/project/android-ndk-r10d/build/core/build-local.mk:148: *** Android NDK: Aborting    .  Stop.
Exited with code 2

config.yml

version: 2
jobs:
  build:
    docker:
      - image: circleci/android:api-25-alpha
    environment:
      MAKEFLAGS: "-i"
      JVM_OPTS: -Xmx3200m
    steps:
      - checkout
      - run: git submodule update --init
      - run:
          name: test ndk
          command: ndk-build



workflows:
  version: 2
  tests:
    jobs:
      - android

environment variables:

#!/bin/bash -eo pipefail
env
…
PWD=/home/circleci/project
HOME=/home/circleci
ANDROID_NDK_HOME=/home/circleci/project/android-ndk-r10d
ADB_INSTALL_TIMEOUT=120
CIRCLE_BRANCH=master
CIRCLE_BUILD_NUM=132
CIRCLECI=true
PATH=/opt/android/sdk/emulator:/opt/android/sdk/tools:/opt/android/sdk/tools/bin:/opt/android/sdk/platform-tools:/home/circleci/.rubies/ruby-2.4.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/circleci/project/android-ndk-r10d
MAKEFLAGS=-i
CIRCLE_JOB=build
_=/usr/bin/env
…

#2

I can’t see this in your env vars - only ANDROID_NDK_HOME.


#3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.