Android Builds failing : No toolchains found in the NDK toolchains

android-ndk
android

#1

Bitrise Build Issue Report template

Description of the issue

We have seen that our Android builds have started failing, There is nothing changed in the code that could cause this.

Environment:

Where did the issue happen?

The issue is happening on Bitrise.io, The stack is :

Android & Docker on Ubontu 18.04

Which build Step causes the issue and which version of the step?

x | Gradle Build Project (exit code: 1) | 46 sec |

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO

  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO

  • Does the issue happen sporadically, or every time? : EVERY TIME

  • Does upgrading the build Step to the latest version help? : ALREADY LATEST

  • When did the issue start? : THURSDAY , 11TH OCTOBER

Local reproduction: Linux / Android (docker based) stack builds

The issue is not reproducible when generating the builds locally

Build log


Weekly Virtual Machine / Stack updates - 2018.10.13
Weekly Virtual Machine / Stack updates - 2018.10.13
#2

MIPS architecture is not supported since NDK r17 https://developer.android.com/ndk/downloads/revision_history
You have to remove it from your configuration or install older NDK manually.


#3

Hello @koral,
Thanks for reply, How can I remove from configuration or Install older ndk Manually ? can you please explain a bit


#4

I did a migration/upgrade on one of our sample android projects for the Android NDK r18 update, here’s the PR what I had to do for this really simple sample project: https://github.com/bitrise-samples/sample-apps-android-sdk22/pull/5/files


#5

For installing an older NDK: How to install a specific Android NDK version on the Android/Linux stack


#6

The simplest option is to just upgrade Android Gradle plugin as @viktorbenei linked: https://github.com/bitrise-samples/sample-apps-android-sdk22/pull/5/files#diff-c197962302397baf3a4cc36463dce5eaL8
You may also need to add google() repository to buildscript block if needed and upgrade Gradle wrapper if it is not compatible with desired AGP version: https://developer.android.com/studio/releases/gradle-plugin#updating-gradle.

At the time of writing the current version is 3.2.1 but minimal supporting NDK r17+ is AFAIR 3.1.0.


Build always failing when installing missing Android tools
#7

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