Bitbucket piping: there are no precedents in the NDK toolkit for ABI: aarch64-linux-android prefix

I am completely new to CI with Bitbucket Pipelines and am currently setting up the pipeline using this article . Due to this error my assemblies do not work

"There are no tool chains in the NDK program chain folder for ABI with a prefix: aarch64-linux-android"

Can someone help me fix this?

+6
source share
3 answers

, . . . : "" ! 😄

: , . , , unset ( ) NDK ( ).

:

- unset ANDROID_NDK_HOME

, bitbucket-pipelines.yml :

image: uber/android-build-environment:latest

pipelines:
  default:
    - step:
        script:
          - unset ANDROID_NDK_HOME
          - ./ci/accept_android_license.sh
          - ./gradlew :app:testDebugUnitTest

?

. . , uber android-build-environment NDK .

- - NDK . : , , / NDK, ? NDK ( Dockerfile /usr/local/android-ndk), 🎉.

unset ting then?

android-ndk, . . rm -rf /usr/local/android-ndk. - ANDROID_NDK_HOME, - ( ):

./gradlew :app:testDebugUnitTest

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /usr/local/android-ndk.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

unset .

:

, . NDK, . " Docker" CI script, . , ( , Docker... , 😉). "" , android-build-environment ( ), ...

. uber:android-build-environment GitHub ( ) . - , , , , master .

+7

android ndk toolchain,

$NDK/build/tools/make_standalone_toolchain.py \ --arch arm --api 21 --install-dir /tmp/my-android-toolchain

.

0
cd .../AndroidSdk/ndk-bundle/toolchains
ln -s aarch64-linux-android-4.9 mips64el-linux-android-4.9
ln -s arm-linux-androideabi-4.9 mipsel-linux-android-4.9
0
source

Source: https://habr.com/ru/post/1017399/


All Articles